/* ===================== TOKENS ===================== */
:root {
  --bg: #1c1c1c;
  --bg-card: #262626;
  --bg-card-2: #212121;
  --border: #303030;
  --orange: #f0833e;
  --orange-text: rgba(0, 0, 0, 0.6);
  /* dark ink used on orange (names + marquee) */
  --text: #ffffff;
  --muted: #9a9a9a;
  --radius: 14px;
  --container: 1200px;
  --font:
    "Inter", "Inter Display", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  zoom: 1.2;
  /* enlarge every element uniformly (text, images, spacing). Tune this one number. */
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===================== BG PAWS ===================== */
.bg-paws {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.paw {
  position: absolute;
  width: 120px;
  opacity: 0.035;
  filter: brightness(0) invert(1);
}

/* keep content above paws */
.container,
.marquee,
.clients,
footer {
  position: relative;
  z-index: 1;
}

/* ===================== NAV ===================== */
.site-nav {
  position: absolute;
  /* sits at the top of the page and scrolls away with the hero */
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-inner a {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #ededed;
  transition: color 0.2s;
}

.nav-inner a:hover {
  color: var(--orange);
}

/* floating state: re-appears as a translucent rounded pill once the hero is passed */
.site-nav.floating {
  position: fixed;
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: max-content;
  padding: 11px 28px;
  background: rgba(26, 26, 26, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  animation: navIn 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* burger (mobile only) */
.nav-burger {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(38, 38, 38, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.nav-burger span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.2s;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================== HERO ===================== */
.hero {
  padding: 90px 0 40px;
  position: relative;
}

.hero-title {
  font-size: clamp(38px, 6.2vw, 74px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

/* the brand heading is mobile-only (matches the original's mobile variant) */
.hero-title--mobile {
  display: none;
}

.hero-avatars {
  display: inline-flex;
  gap: 6px;
  vertical-align: middle;
  margin-left: 8px;
}

.hero-avatars img {
  width: 0.82em;
  height: 0.82em;
  border-radius: 0.18em;
  object-fit: cover;
  display: inline-block;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 13px 22px;
  border-radius: 12px;
  transition:
    transform 0.15s,
    filter 0.15s;
}

.btn-contact:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-contact .arrow {
  transition: transform 0.2s;
}

.btn-contact:hover .arrow {
  transform: translateX(4px);
}

.garfield {
  position: absolute;
  right: 2.5%;
  bottom: 104.5%;
  /* anchor his base to the top edge of the videos... */
  width: clamp(110px, 17vw, 235px);
  /* ...then overlap by a small % of his OWN height so it scales on every screen size */
  transform: translateY(7%) scaleX(-1);
  /* translateY = responsive overlap; scaleX = mirror (faces left) */
  transform-origin: bottom center;
  z-index: 3;
  pointer-events: none;
}

.hero-videos {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  position: relative;
}

/* ===================== THUMB + PLAY ===================== */
.thumb {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.thumb:hover img {
  transform: scale(1.05);
}

/* inline YouTube player (replaces the thumbnail on click — no redirect) */
.thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 4;
}

.thumb.playing .play {
  display: none;
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 44px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  transition:
    background 0.2s,
    transform 0.2s;
}

.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-42%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.thumb:hover .play {
  background: #f00;
  transform: translate(-50%, -50%) scale(1.08);
}

/* ===================== MARQUEE ===================== */
.marquee {
  background: var(--orange);
  overflow: hidden;
  padding: 13px 0;
  white-space: nowrap;
  margin: 36px 0;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: scroll-left 28s linear infinite;
}

.marquee-track span {
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  color: var(--orange-text);
  padding: 0 28px;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

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

/* ===================== CLIENTS ===================== */
.clients {
  overflow: hidden;
  /* contained, not full-bleed: margins left/right via max-width + auto */
  max-width: var(--container);
  margin: 16px auto 28px;
  padding: 0 10px;
  -webkit-mask-image: linear-gradient(90deg,
      transparent,
      #000 6%,
      #000 94%,
      transparent);
  mask-image: linear-gradient(90deg,
      transparent,
      #000 6%,
      #000 94%,
      transparent);
}

.clients-track {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 20px 16px;
  animation: scroll-left 34s linear infinite;
}

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

.client {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 178px;
  /* match the avatar so the name pill spans its full width */
  flex: 0 0 auto;
}

.client-avatar {
  width: 178px;
  height: 178px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
}

.client-name {
  align-self: stretch;
  /* pill spans the full avatar width */
  text-align: center;
  background: var(--orange);
  color: var(--orange-text);
  /* dark ink, same as the marquee */
  font-weight: 800;
  font-size: 20px;
  padding: 6px 14px;
  border-radius: 10px;
}

.client-subs {
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

/* ===================== WORK ===================== */
.work {
  padding: 10px 0 0;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-head img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
}

.meta-head .name {
  display: block;
  font-weight: 700;
  font-size: 16px;
}

.meta-head .subs {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--orange);
}

.meta .quote {
  font-size: 15px;
  line-height: 1.5;
  color: #e6e6e6;
}

/* ===================== REVIEWS ===================== */
.reviews {
  padding: 6px 0;
}

.reviews-grid {
  columns: 3;
  column-gap: 24px;
}

.review {
  break-inside: avoid;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 24px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-head img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
}

.review-head .name {
  display: block;
  font-weight: 700;
  font-size: 16px;
}

.review-head .subs {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--orange);
}

.review p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #d6d6d6;
}

/* ===================== FOOTER ===================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 30px;
  padding-bottom: 70px;
}

.footer-left h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.footer-built {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  transition:
    transform 0.15s,
    filter 0.15s;
}

.dev-tag {
  color: #f0833e;
  cursor: pointer;
}

.dev-tag:hover {
  color: #fff;
}

.footer-links a:hover {
  transform: translateX(-3px);
  filter: brightness(1.15);
}

.link-twitter {
  color: var(--orange);
}

.link-discord,
.link-email {
  color: #fff;
}

/* ===================== REVEAL ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ===================== RESPONSIVE ===================== */
/* nav: collapse to a burger + dropdown on smaller screens */
@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    justify-content: flex-end;
    padding: 14px 16px;
  }

  .site-nav.floating {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: auto;
    justify-content: flex-end;
    padding: 14px 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0;
    animation: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-inner {
    position: absolute;
    top: 64px;
    right: 16px;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    background: rgba(28, 28, 28, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
  }

  .nav-inner.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-inner a {
    padding: 11px 14px;
    border-radius: 9px;
  }

  .nav-inner a:hover {
    background: var(--orange);
    color: #fff;
  }

  /* natural mobile scale (the reference isn't zoomed up like the desktop) */
  body {
    zoom: 1;
  }

  /* hero: swap to the brand heading, like the reference */
  .hero {
    padding: 84px 0 22px;
  }

  .hero-title--desktop {
    display: none;
  }

  .hero-title--mobile {
    display: block;
    font-size: clamp(34px, 9vw, 46px);
  }

  .btn-contact {
    margin-top: 22px;
  }

  /* nudge Garfield 2% lower on mobile */
  .garfield {
    bottom: 102%;
    transform: translateY(9%) scaleX(-1);
  }

  y

  /* smaller client cards on phones */
  .clients-track {
    gap: 18px;
    padding: 14px 10px;
  }

  .client {
    width: 112px;
    gap: 9px;
  }

  .client-avatar {
    width: 112px;
    height: 112px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
  }

  .client-name {
    font-size: 15px;
    padding: 3px 14px;
  }

  .client-subs {
    font-size: 13px;
  }
}

@media (max-width: 860px) {
  .hero-videos {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    columns: 2;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .reviews-grid {
    columns: 1;
  }

  .hero {
    padding-top: 76px;
  }

  .hero-avatars img {
    width: 0.9em;
    height: 0.9em;
  }

  .paw {
    width: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .marquee-track,
  .clients-track {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}