/* ============================================================
   Pixelama Studio — modern rebuild
   ============================================================ */

:root {
  --bg: #0a0a10;
  --bg-alt: #111118;
  --surface: #16161f;
  --surface-2: #1c1c28;
  --text: #f5f5f8;
  --text-dim: #a3a2b3;
  --border: rgba(255, 255, 255, 0.08);

  --accent-1: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #f97316;
  --gradient: linear-gradient(115deg, var(--accent-1) 0%, var(--accent-2) 55%, var(--accent-3) 100%);

  --container: 1200px;
  --radius: 18px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section {
  position: relative;
  padding: 120px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #0a0a10;
}

.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(236, 72, 153, 0.5);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 11px 22px;
  font-size: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 14px 0;
  background: rgba(10, 10, 16, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  z-index: 110;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.site-footer .logo img {
  height: 48px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  display: flex;
  gap: 34px;
}

.main-nav ul a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease);
}

.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s var(--ease);
}

.main-nav ul a:hover,
.main-nav ul a.active {
  color: var(--text);
}

.main-nav ul a:hover::after,
.main-nav ul a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.hero-bg .blob-1 {
  width: 480px;
  height: 480px;
  background: var(--accent-1);
  top: -120px;
  right: -100px;
  animation: float-1 16s ease-in-out infinite;
}

.hero-bg .blob-2 {
  width: 380px;
  height: 380px;
  background: var(--accent-3);
  bottom: -140px;
  left: -100px;
  animation: float-2 20s ease-in-out infinite;
}

.hero-bg .grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
  opacity: 0.5;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 40px); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  margin-bottom: 26px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 38px;
}

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

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

.hero-visual .orbit-dot {
  animation: spin 14s linear infinite;
  transform-origin: 250px 250px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Stats ---------- */

.stats {
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
}

.stat-label {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Who we are / split section ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split.reverse .split-visual {
  order: 2;
}

.split h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 22px;
}

.split p {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 30px;
  max-width: 520px;
}

.split-visual {
  position: relative;
  aspect-ratio: 4 / 3.4;
}

.split-visual svg {
  width: 100%;
  height: 100%;
}

/* ---------- Services ---------- */

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 17px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.4);
  background: var(--surface-2);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-2);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.service-card h3 {
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-dim);
  font-size: 14.5px;
}

.center-cta {
  text-align: center;
}

/* ---------- Projects ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  cursor: default;
}

.project-card .project-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.6s var(--ease);
}

.project-card svg {
  width: 100%;
  height: 100%;
}

.project-card:hover .project-bg {
  transform: scale(1.08);
}

.project-card .project-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.92) 0%, rgba(5, 5, 8, 0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

.project-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
  font-weight: 600;
}

.project-card h3 {
  font-size: 20px;
}

/* ---------- Art gallery (concept -> final) ---------- */

.art-compare-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.art-compare h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.art-compare-images {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.art-compare-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  background: var(--surface);
}

.art-compare-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.6s var(--ease);
}

.art-compare-img:hover img {
  transform: scale(1.06);
}

.art-compare-img figcaption {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10, 10, 16, 0.65);
  backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.art-compare-img:last-child figcaption {
  color: var(--bg);
  background: var(--gradient);
  border-color: transparent;
}

.art-compare-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  flex-shrink: 0;
}

.art-compare-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--gradient);
  opacity: 0.15;
  filter: blur(60px);
  z-index: 0;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 30px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.footer-nav a:hover {
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  color: var(--text-dim);
}

.social-links a:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-3px);
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding: 220px 0 100px;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  max-width: 780px;
}

.page-hero p.lead {
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 17px;
  max-width: 560px;
}

/* ---------- Values / process grid ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  padding: 34px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.value-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 18px;
}

.value-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- Careers ---------- */

.job-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.job-row {
  background: var(--surface);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transition: background 0.3s var(--ease);
}

.job-row:hover {
  background: var(--surface-2);
}

.job-info h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.job-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.job-meta span {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.perk-card {
  text-align: center;
  padding: 34px 20px;
}

.perk-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  color: var(--accent-3);
}

.perk-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.perk-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.perk-card p {
  color: var(--text-dim);
  font-size: 13.5px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-grid-single {
  max-width: 640px;
  margin: 0 auto;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 34px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent-3);
  padding: 11px;
}

.contact-info-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.contact-info-item h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.contact-info-item a,
.contact-info-item p {
  font-size: 16px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-field input,
.form-field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
}

.form-note {
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent-2);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .split.reverse .split-visual,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-visual {
    order: 0;
  }

  .hero-visual,
  .split-visual {
    max-width: 420px;
    margin: 0 auto;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid,
  .values-grid,
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .main-nav ul a {
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

@media (max-width: 640px) {
  section {
    padding: 80px 0;
  }

  .container {
    padding: 0 22px;
  }

  .services-grid,
  .projects-grid,
  .stats-grid,
  .values-grid,
  .perks-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .art-compare-images {
    grid-template-columns: 1fr;
  }

  .art-compare-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }

  .cta-band {
    padding: 50px 26px;
  }

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

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

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 8, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  opacity: 0;
  animation: lightbox-in 0.25s var(--ease) forwards;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lightbox-in {
  to { opacity: 1; }
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  cursor: default;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox-close:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 20px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}
