/* ── Variables ── */
@font-face {
  font-family: 'Sitka Display';
  src: local('Sitka Display'), local('SitkaDisplay'), local('Sitka Banner'), local('Sitka Text');
  font-weight: 400 700;
  font-style: normal;
}

@font-face {
  font-family: 'Sitka Small Bold';
  src: local('Sitka Small Bold'), local('SitkaSmall-Bold'), local('Sitka Small'), local('Sitka Text');
  font-weight: 700;
  font-style: normal;
}

:root {
  /* Core palette — black, orange, blue, white */
  --ink: #000000;
  --black: #050505;
  --charcoal: #0a0a0a;
  --graphite: #111111;
  --slate: #1a1a1a;
  --smoke: #242424;
  --ash: #2e2e2e;

  --white: #ffffff;
  --snow: #f5f5f5;
  --pearl: #e8e8e8;
  --silver: #c8c8c8;
  --platinum: #a0a0a0;

  --orange: #f0842e;
  --orange-bright: #ff9a3c;
  --orange-deep: #d96a18;
  --orange-muted: rgba(240, 132, 46, 0.75);
  --orange-glow: rgba(240, 132, 46, 0.35);
  --orange-subtle: rgba(240, 132, 46, 0.18);
  --orange-faint: rgba(240, 132, 46, 0.1);

  --blue: #3bb5f5;
  --blue-bright: #5ec8ff;
  --blue-deep: #1a8fd4;
  --blue-muted: rgba(59, 181, 245, 0.7);
  --blue-glow: rgba(59, 181, 245, 0.38);
  --blue-subtle: rgba(59, 181, 245, 0.16);
  --blue-faint: rgba(59, 181, 245, 0.09);

  --header-height: 80px;

  /* Text & UI tints */
  --gray: rgba(255, 255, 255, 0.62);
  --gray-mid: rgba(255, 255, 255, 0.45);
  --gray-dim: rgba(255, 255, 255, 0.3);
  --gray-faint: rgba(255, 255, 255, 0.14);

  /* Borders & surfaces */
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(240, 132, 46, 0.55);
  --border-strong: rgba(240, 132, 46, 0.75);

  --surface: rgba(255, 255, 255, 0.025);
  --surface-raised: rgba(255, 255, 255, 0.04);
  --surface-elevated: rgba(255, 255, 255, 0.065);
  --surface-highlight: rgba(255, 255, 255, 0.09);

  --accent-line: var(--orange);
  --accent-glow: var(--blue-glow);
  --accent-secondary: var(--blue);

  /* Shadows */
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-deep: 0 28px 64px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 48px var(--orange-glow);
  --shadow-blue: 0 0 40px var(--blue-glow);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --radius-sm: 2px;
  --radius-md: 4px;
  --font-display: 'Sitka Display', Georgia, 'Times New Roman', serif;
  --font-brand: 'Sitka Small Bold', 'Sitka Display', Georgia, serif;
  --font-body: 'Sitka Display', Georgia, 'Times New Roman', serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  background:
    radial-gradient(ellipse 42% 32% at 88% 12%, rgba(59, 181, 245, 0.14), transparent 58%),
    radial-gradient(ellipse 38% 30% at 8% 78%, rgba(240, 132, 46, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(59, 181, 245, 0.07), transparent 62%),
    radial-gradient(ellipse 40% 28% at 100% 100%, rgba(240, 132, 46, 0.08), transparent 50%),
    linear-gradient(180deg, #0c0c0c 0%, var(--ink) 35%, var(--black) 100%);
  color: var(--snow);
  line-height: 1.6;
  overflow-x: clip;
  overflow-y: auto;
  min-height: 100%;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 181, 245, 0.06) 0%, transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(240, 132, 46, 0.05) 0%, transparent 40%);
}

::selection {
  background: var(--orange-subtle);
  color: var(--snow);
}

.text-accent {
  color: var(--orange);
  font-style: italic;
}

/* subtle film-grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 720px;
  text-align: center;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 40px;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-inset);
  transition: padding var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

header.is-scrolled {
  padding: 12px 40px;
  background: rgba(12, 12, 12, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), var(--shadow-inset);
}

header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

nav a.is-active {
  color: var(--white);
}

nav a.is-active::after {
  width: 100%;
  background: var(--orange);
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.85;
}

.logo-mark {
  display: block;
  height: 44px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  gap: 2px;
}

.logo-text .brand-zeropixel {
  font-size: 1.15rem;
}

.logo-text .brand-studio {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  align-self: center;
}

.logo-img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  flex-shrink: 0;
}

nav {
  justify-self: center;
}

.header-nav {
  display: contents;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  justify-self: end;
  transition: border-color var(--transition);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle:hover {
  border-color: var(--orange);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.btn-header {
  justify-self: end;
  padding: 10px 22px;
  font-size: 0.72rem;
  border-color: var(--orange);
  color: var(--orange);
}

.btn-header:hover {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
  box-shadow: var(--shadow-glow);
}

.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--transition);
}

.footer-logo:hover {
  opacity: 0.85;
}

.footer-logo-mark {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
  image-rendering: auto;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  gap: 4px;
}

.footer-logo-text .brand-zeropixel {
  font-size: 1.55rem;
}

.footer-logo-text .brand-studio {
  font-size: 0.84rem;
  letter-spacing: 0.1em;
}

nav a {
  margin: 0 14px;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--white);
}

nav a:hover::after {
  width: 100%;
  background: var(--orange-muted);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vw * 576 / 1024);
  background: var(--ink);
  isolation: isolate;
  overflow: visible;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 17, 0.45) 60%, rgba(17, 17, 17, 0.85) 100%);
  pointer-events: none;
  z-index: 3;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 42%;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.55) 28%,
      rgba(0, 0, 0, 0.24) 42%,
      rgba(0, 0, 0, 0.08) 52%,
      transparent 64%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.28) 14%,
      transparent 28%,
      transparent 86%,
      rgba(0, 0, 0, 0.2) 100%
    );
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: calc(100vw * 576 / 1024);
  padding:
    calc(var(--header-height) + clamp(18px, 2.8vw, 32px))
    0
    clamp(32px, 4vw, 52px);
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: min(580px, 46%);
  max-width: 580px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0 clamp(24px, 4vw, 48px) 0 clamp(48px, 6.5vw, 120px);
  text-align: left;
  box-sizing: border-box;
}

.hero-content > * {
  animation: hero-fade-up 0.9s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.hero-content > .hero-title { animation-delay: 0.1s; }
.hero-content > .hero-subtitle { animation-delay: 0.2s; }
.hero-content > .hero-text { animation-delay: 0.3s; }
.hero-content > .hero-tagline { animation-delay: 0.4s; }
.hero-content > .hero-stats { animation-delay: 0.5s; }
.hero-content > .hero-services { animation-delay: 0.6s; }
.hero-content > .hero-actions { animation-delay: 0.7s; }

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.2vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 12px;
  padding-top: 2px;
  letter-spacing: normal;
  position: relative;
  text-align: left;
  align-self: flex-start;
}

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

/* Brand wordmark — Sitka Display (ZeroPixel) + Sitka Small Bold (Studio) */
.brand-zeropixel {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.brand-studio {
  font-family: var(--font-brand);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--white);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.hero-title .brand-zeropixel,
.hero-title .brand-studio {
  font-size: inherit;
  line-height: inherit;
}

.hero-title .brand-studio {
  align-self: center;
  letter-spacing: 0.1em;
}

.about-content h2 {
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: normal;
}

.about-content h2 .brand-zeropixel,
.about-content h2 .brand-studio {
  font-size: inherit;
  line-height: inherit;
}

.about-content h2 .brand-studio {
  letter-spacing: 0.1em;
}

.footer-bottom .brand-zeropixel,
.footer-bottom .brand-studio {
  font-size: inherit;
  letter-spacing: 0.06em;
}

.footer-bottom .brand-studio {
  letter-spacing: 0.18em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--orange-bright);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.hero-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  line-height: 1.7;
}

.hero-tagline {
  font-family: var(--font-brand);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-style: italic;
  color: var(--pearl);
  width: 100%;
  max-width: 100%;
  margin: 0 0 22px;
  line-height: 1.55;
  opacity: 0.95;
  padding: 16px 20px;
  border: 1px solid rgba(240, 132, 46, 0.35);
  border-left: 3px solid var(--orange);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  position: relative;
  text-align: left;
  box-sizing: border-box;
}

.hero-tagline::before {
  display: none;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.hero-stat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0 10px;
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat:last-child {
  padding-right: 0;
}

.hero-stat-num {
  font-family: var(--font-brand);
  color: var(--blue-bright);
  line-height: 1;
  font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.hero-stat-label {
  color: var(--white);
  opacity: 0.88;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.55rem;
  text-align: left;
  line-height: 1.35;
}

.hero-stat-divider {
  width: 1px;
  height: 38px;
  background: var(--blue);
  opacity: 0.45;
  flex-shrink: 0;
}

.hero-services {
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%);
}

.hero-services-marquee {
  overflow: hidden;
  width: 100%;
}

.hero-services-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: hero-services-marquee 32s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

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

.hero-services-track > span:not(.hero-services-dot) {
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-services-dot {
  margin: 0 0.85em;
  color: var(--orange);
  opacity: 0.45;
  flex-shrink: 0;
  letter-spacing: normal;
  font-size: 1.1em;
  line-height: 1;
}

@keyframes hero-services-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(16px, 2vh, 24px);
}

.hero-actions .btn {
  flex: 1;
  min-width: 0;
  max-width: none;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--white);
  padding: 15px 20px;
  font-size: 0.78rem;
}

.hero-actions .btn-primary,
.hero-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
  color: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: var(--white);
  box-shadow: none;
  transform: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  border-color: var(--blue-muted);
  background: var(--blue-faint);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--blue-subtle);
  color: var(--snow);
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-dim);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
  z-index: 2;
}

.hero-scroll:hover {
  color: var(--orange);
  transform: translateX(-50%) translateY(4px);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--orange), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 20px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

h1 .accent {
  display: inline-block;
  background: linear-gradient(90deg, var(--white) 0%, rgba(255,255,255,0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 1200px) {
  .hero-content {
    width: min(600px, 44%);
    max-width: 600px;
    padding-left: clamp(64px, 7vw, 128px);
  }

  .hero-bg-img {
    object-position: 38% 40%;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    width: min(520px, 52%);
    max-width: 520px;
    padding-left: clamp(32px, 5vw, 64px);
  }

  .hero-bg-img {
    object-position: 46% 44%;
  }
}

/* ── Buttons ── */
.btn, button[type="submit"] {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  padding: 16px 36px;
  text-decoration: none;
  border: 1px solid var(--white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.btn::before, button[type="submit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn:hover::before, button[type="submit"]:hover::before {
  transform: translateX(120%);
}

.btn:hover, button[type="submit"]:hover {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn:focus-visible, button[type="submit"]:focus-visible,
nav a:focus-visible, .contact-item:focus-visible, .social-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

/* ── Sections ── */
section:not(.hero) {
  padding: 100px 0;
  border-top: none;
  position: relative;
  overflow: hidden;
}

section.hero {
  padding: 0;
}

section:not(.hero) > * {
  position: relative;
  z-index: 1;
}

section:not(.hero):not(.trust)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 920px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-muted), var(--orange), var(--blue-muted), transparent);
  opacity: 0.4;
  z-index: 1;
}

section:not(.hero)::after {
  content: '';
  position: absolute;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

section:not(.hero):nth-of-type(odd)::after {
  top: -120px;
  right: -100px;
  background: rgba(59, 181, 245, 0.14);
}

section:not(.hero):nth-of-type(even)::after {
  bottom: -120px;
  left: -100px;
  background: rgba(240, 132, 46, 0.12);
}

section:nth-of-type(even):not(.hero) {
  background: linear-gradient(180deg, rgba(59, 181, 245, 0.04) 0%, transparent 55%);
}

section:nth-of-type(odd):not(.hero) {
  background: linear-gradient(180deg, rgba(240, 132, 46, 0.03) 0%, transparent 50%);
}

#services {
  background:
    radial-gradient(ellipse 55% 45% at 0% 25%, rgba(240, 132, 46, 0.14), transparent 58%),
    radial-gradient(ellipse 35% 30% at 100% 80%, rgba(59, 181, 245, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 35%),
    linear-gradient(0deg, var(--charcoal) 0%, transparent 100%);
}

#portfolio {
  background:
    radial-gradient(ellipse 50% 40% at 100% 35%, rgba(59, 181, 245, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 32% at 0% 70%, rgba(240, 132, 46, 0.08), transparent 52%),
    linear-gradient(180deg, transparent 0%, rgba(15, 20, 28, 0.55) 50%, transparent 100%);
}

#about {
  background:
    radial-gradient(ellipse 45% 38% at 85% 15%, rgba(59, 181, 245, 0.14), transparent 55%),
    radial-gradient(ellipse 38% 32% at 10% 85%, rgba(240, 132, 46, 0.1), transparent 50%),
    linear-gradient(180deg, var(--surface-raised) 0%, transparent 65%);
}

#process {
  background:
    radial-gradient(ellipse 52% 42% at 18% 85%, rgba(240, 132, 46, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 20%, rgba(59, 181, 245, 0.1), transparent 52%),
    linear-gradient(180deg, transparent 0%, var(--charcoal) 100%);
}

#testimonials {
  background:
    radial-gradient(ellipse 60% 48% at 50% 0%, rgba(59, 181, 245, 0.18), transparent 58%),
    radial-gradient(ellipse 40% 35% at 80% 100%, rgba(240, 132, 46, 0.1), transparent 52%),
    linear-gradient(180deg, var(--graphite) 0%, var(--charcoal) 100%);
}

#contact {
  background:
    radial-gradient(ellipse 48% 42% at 100% 0%, rgba(240, 132, 46, 0.14), transparent 55%),
    radial-gradient(ellipse 42% 36% at 0% 100%, rgba(59, 181, 245, 0.12), transparent 52%),
    linear-gradient(180deg, var(--slate) 0%, var(--ink) 100%);
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 0;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--orange), var(--blue-muted));
}

.section-header .section-desc {
  margin-top: 16px;
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll-line,
  .hero-content > * {
    animation: none;
  }

  .hero-services-track {
    animation: none;
  }

  .lightbox,
  .lightbox-img {
    transition: none;
  }

  .lightbox-img {
    transform: none;
  }
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  text-align: center;
  margin: 0 0 28px;
}

.section-desc {
  color: var(--gray);
  font-weight: 300;
  margin: 0 0 48px;
  max-width: 520px;
}

#about .section-desc,
#about p {
  margin-left: 0;
  margin-right: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
  border: 1px solid rgba(59, 181, 245, 0.15);
  background:
    linear-gradient(160deg, rgba(59, 181, 245, 0.08) 0%, var(--surface-elevated) 50%, rgba(240, 132, 46, 0.06) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 0 48px rgba(59, 181, 245, 0.06);
}

.about-media::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 1;
}

.about-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--blue-muted), transparent);
  z-index: 2;
}

.about-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

#about p {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.75;
  margin: 0 0 16px;
  max-width: 36em;
}

#about .about-lead {
  font-size: 1.12rem;
  color: var(--snow);
  line-height: 1.65;
  margin-bottom: 18px;
}

#about .about-body {
  margin-bottom: 20px;
}

#about .about-belief {
  margin: 24px 0 0;
  padding: 16px 18px 16px 16px;
  border: 1px solid rgba(240, 132, 46, 0.28);
  border-left: 3px solid var(--orange);
  border-top: none;
  background: rgba(0, 0, 0, 0.28);
  font-style: italic;
  color: var(--pearl);
  line-height: 1.6;
  max-width: 36em;
}

/* ── Trust / Brands ── */
.trust {
  position: relative;
  padding: 64px 0 72px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(59, 181, 245, 0.2), transparent 68%),
    radial-gradient(ellipse 40% 30% at 15% 50%, rgba(240, 132, 46, 0.1), transparent 55%),
    linear-gradient(180deg, var(--graphite) 0%, var(--charcoal) 50%, var(--graphite) 100%);
  border-top: none;
  border-bottom: 1px solid rgba(59, 181, 245, 0.12);
  overflow: hidden;
}

.trust::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 38%, transparent 62%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}

.trust::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--orange), var(--blue), transparent);
  opacity: 0.85;
}

.trust .section-label {
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.32em;
  margin-bottom: 28px;
  opacity: 0.95;
}

.trust-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  overflow: hidden;
}

.trust-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 181, 245, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--snow);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(59, 181, 245, 0.08);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.trust-nav:hover:not(:disabled) {
  border-color: var(--orange);
  background: var(--orange-subtle);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.trust-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.trust-scroll-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.trust-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 16px 4px;
}

.trust-scroll::-webkit-scrollbar {
  display: none;
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  margin: 0 auto;
  padding: 0 8px;
}

.trust-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 110px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  opacity: 0.85;
  transition: transform var(--transition), opacity var(--transition), filter var(--transition), border-color var(--transition), background var(--transition);
}

.trust-logo:hover {
  transform: translateY(-3px);
  opacity: 1;
  border-color: rgba(240, 132, 46, 0.25);
  background: rgba(255, 255, 255, 0.03);
  filter: drop-shadow(0 6px 18px rgba(240, 132, 46, 0.15));
}

.trust-logo img {
  display: block;
  width: auto;
  height: 80px;
  max-width: 300px;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  filter: grayscale(15%) brightness(1.05);
  transition: filter var(--transition);
}

.trust-logo:hover img {
  filter: grayscale(0%) brightness(1.12);
}

/* ── Service Pillars ── */
.cgi-intro {
  max-width: 820px;
  margin-bottom: 48px;
  padding: 28px 32px;
  border: 1px solid rgba(59, 181, 245, 0.15);
  background:
    linear-gradient(135deg, rgba(59, 181, 245, 0.08) 0%, var(--surface-elevated) 45%, rgba(240, 132, 46, 0.06) 100%);
  border-left: 3px solid var(--orange);
  box-shadow: var(--shadow-inset), 0 0 40px rgba(59, 181, 245, 0.06);
}

.cgi-intro .cgi-tagline {
  font-family: var(--font-brand);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--white);
  margin: 0 0 20px;
}

.cgi-intro p {
  color: var(--gray);
  font-weight: 300;
  line-height: 1.8;
  margin: 0 0 16px;
}

.service-scroll-hint {
  margin: 0 0 16px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
}

.service-pillars-scroll-wrap {
  position: relative;
  margin: 0 -8px;
}

.service-pillars-scroll-wrap::before,
.service-pillars-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 14px;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.service-pillars-scroll-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--black) 15%, transparent 100%);
}

.service-pillars-scroll-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--black) 15%, transparent 100%);
}

.service-pillars-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 8px 18px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-muted) var(--slate);
  -webkit-overflow-scrolling: touch;
}

.service-pillars-scroll::-webkit-scrollbar {
  height: 8px;
}

.service-pillars-scroll::-webkit-scrollbar-track {
  background: var(--slate);
  border-radius: 4px;
}

.service-pillars-scroll::-webkit-scrollbar-thumb {
  background: var(--orange-muted);
  border-radius: 4px;
}

.service-pillars-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

.service-pillar {
  position: relative;
  flex: 0 0 min(360px, 88vw);
  width: min(360px, 88vw);
  scroll-snap-align: start;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, var(--surface) 55%, rgba(0, 0, 0, 0.15) 100%);
  padding: 28px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-inset);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-pillar:nth-child(odd) {
  border-top: 2px solid rgba(240, 132, 46, 0.35);
}

.service-pillar:nth-child(even) {
  border-top: 2px solid rgba(59, 181, 245, 0.35);
}

.service-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--blue-muted), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-pillar:hover {
  border-color: var(--orange-muted);
  background: linear-gradient(165deg, rgba(59, 181, 245, 0.1) 0%, var(--surface-highlight) 50%, rgba(240, 132, 46, 0.08) 100%);
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft), var(--shadow-blue);
}

.service-pillar:hover::before {
  opacity: 1;
}

.service-pillar-num {
  display: block;
  font-family: var(--font-brand);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gray-dim);
  margin-bottom: 10px;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.service-pillar-logo {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  object-fit: contain;
  object-position: left center;
}

.service-pillar-logo[hidden] {
  display: none;
}

.service-pillar h3 {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.service-pillar > p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--gray);
}

.service-pillar-includes {
  margin: 0 0 12px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange) !important;
  line-height: 1.4 !important;
}

.service-pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service-pillar-list li {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}

.service-pillar-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-size: 0.55rem;
  line-height: 1.8;
  opacity: 0.85;
}

.service-custom-note {
  margin: 28px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--orange);
  background: linear-gradient(135deg, var(--surface-elevated) 0%, var(--surface) 100%);
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ── Service Cards (legacy marquee) ── */
.services-scroll-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  max-width: 100%;
}

.services-scroll-wrap::before,
.services-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.services-scroll-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--black) 20%, transparent 100%);
}

.services-scroll-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--black) 20%, transparent 100%);
}

.services-scroll {
  overflow: hidden;
  padding: 8px 0 12px;
}

.services-scroll.is-manual {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.services-scroll.is-manual::-webkit-scrollbar {
  height: 6px;
}

.services-scroll.is-manual::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.services-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.services-track.is-marquee {
  animation: services-marquee 48s linear infinite;
}

.services-scroll-wrap:hover .services-track.is-marquee {
  animation-play-state: paused;
}

@keyframes services-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

#services .container .section-desc {
  margin-bottom: 24px;
}

#services .card {
  flex: 0 0 260px;
  min-height: 150px;
  scroll-snap-align: start;
}

#services.in-view .card:nth-child(-n+11) {
  animation: service-card-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

#services.in-view .card:nth-child(1)  { animation-delay: 0.05s; }
#services.in-view .card:nth-child(2)  { animation-delay: 0.1s; }
#services.in-view .card:nth-child(3)  { animation-delay: 0.15s; }
#services.in-view .card:nth-child(4)  { animation-delay: 0.2s; }
#services.in-view .card:nth-child(5)  { animation-delay: 0.25s; }
#services.in-view .card:nth-child(6)  { animation-delay: 0.3s; }
#services.in-view .card:nth-child(7)  { animation-delay: 0.35s; }
#services.in-view .card:nth-child(8)  { animation-delay: 0.4s; }
#services.in-view .card:nth-child(9)  { animation-delay: 0.45s; }
#services.in-view .card:nth-child(10) { animation-delay: 0.5s; }
#services.in-view .card:nth-child(11) { animation-delay: 0.55s; }

@keyframes service-card-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-track.is-marquee {
    animation: none;
  }
}

.card {
  position: relative;
  border: 1px solid var(--border);
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 0.4;
}

.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gray-dim);
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ── Portfolio ── */
.portfolio-categories {
  display: block;
  min-height: 0;
}

.portfolio-category {
  display: none;
  flex-direction: column;
  gap: 28px;
  padding: 36px 28px 32px;
  border: 1px solid rgba(59, 181, 245, 0.14);
  background:
    linear-gradient(160deg, rgba(59, 181, 245, 0.07) 0%, var(--surface-elevated) 40%, rgba(240, 132, 46, 0.05) 100%);
  box-shadow: var(--shadow-inset), 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 60px rgba(59, 181, 245, 0.04);
  scroll-margin-top: 100px;
}

.portfolio-category.is-active {
  display: flex;
}

.portfolio-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.portfolio-nav-btn {
  padding: 10px 20px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  color: var(--gray-mid);
  cursor: pointer;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.portfolio-nav-btn:hover,
.portfolio-nav-btn.is-active {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange-subtle) 0%, rgba(59, 181, 245, 0.1) 100%);
  color: var(--orange-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.portfolio-scroll-hint {
  margin: 0 0 28px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--gray-dim);
}

.portfolio-category::before {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin: 0 auto 4px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--blue-muted), transparent);
}

.portfolio-videos {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-muted) var(--slate);
  -webkit-overflow-scrolling: touch;
}

.portfolio-videos::-webkit-scrollbar {
  height: 8px;
}

.portfolio-videos::-webkit-scrollbar-track {
  background: var(--slate);
  border-radius: 4px;
}

.portfolio-videos::-webkit-scrollbar-thumb {
  background: var(--orange-muted);
  border-radius: 4px;
}

.portfolio-videos::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

.portfolio-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-muted) var(--slate);
  -webkit-overflow-scrolling: touch;
}

.portfolio-gallery::-webkit-scrollbar {
  height: 8px;
}

.portfolio-gallery::-webkit-scrollbar-track {
  background: var(--slate);
  border-radius: 4px;
}

.portfolio-gallery::-webkit-scrollbar-thumb {
  background: var(--blue-muted);
  border-radius: 4px;
}

.portfolio-gallery::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

.portfolio-gallery-item {
  position: relative;
  flex: 0 0 220px;
  width: 220px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
  cursor: zoom-in;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.portfolio-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.portfolio-gallery-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.portfolio-gallery-item:hover::after {
  opacity: 1;
}

.portfolio-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-gallery-item:hover img {
  transform: scale(1.06);
}

/* ── Portfolio Lightbox ── */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 80px;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: min(1200px, 90vw);
  max-height: 88vh;
  text-align: center;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 56px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  margin: 14px 0 0;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--gray);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 1.75rem;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.05);
}

.portfolio-subheading {
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 8px 0 0;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.portfolio-cat-title {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  color: var(--white);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.portfolio-wip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  margin: 12px auto 0;
  padding: 48px 32px;
  max-width: 520px;
  border: 1px dashed rgba(59, 181, 245, 0.35);
  background:
    linear-gradient(160deg, rgba(59, 181, 245, 0.08) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(240, 132, 46, 0.06) 100%);
  box-shadow: var(--shadow-inset);
}

.portfolio-wip-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-bright);
  border: 1px solid rgba(240, 132, 46, 0.45);
  background: rgba(240, 132, 46, 0.1);
}

.portfolio-wip-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.portfolio-wip-desc {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray);
  max-width: 38ch;
}

.portfolio-wip-desc strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.portfolio-cat-focus {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
  color: var(--gray);
  margin: -8px 0 4px;
}

.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
}

.portfolio-videos .portfolio-item {
  flex: 0 0 min(360px, 82vw);
  width: min(360px, 82vw);
  scroll-snap-align: start;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.portfolio-item:hover {
  border-color: var(--border);
  background: var(--surface);
}

.video-wrap {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color var(--transition);
  pointer-events: none;
}

.portfolio-item:hover .video-wrap {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-soft);
}

.portfolio-item:hover .video-wrap::after {
  border-color: rgba(255, 255, 255, 0.08);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.portfolio-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-tag {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.portfolio-desc {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray);
}

.portfolio-desc strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Process ── */
#process .section-desc {
  margin-bottom: 56px;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 12px;
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.process-step:hover {
  border-color: var(--orange-subtle);
  background: linear-gradient(180deg, var(--orange-faint) 0%, rgba(59, 181, 245, 0.06) 100%);
  transform: translateY(-4px);
}

.process-step:nth-child(even):hover {
  background: linear-gradient(180deg, rgba(59, 181, 245, 0.1) 0%, var(--orange-faint) 100%);
}

.process-step:nth-child(even):hover .process-icon {
  border-color: var(--blue-muted);
  background: linear-gradient(160deg, var(--blue-subtle) 0%, var(--surface-elevated) 100%);
  box-shadow: var(--shadow-blue);
}

.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gray-dim);
  margin-bottom: 16px;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.process-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, var(--surface-elevated) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-inset);
  transition: border-color var(--transition), background var(--transition);
}

.process-step:hover .process-icon {
  border-color: var(--orange-muted);
  background: linear-gradient(160deg, var(--orange-subtle) 0%, var(--surface-elevated) 100%);
  box-shadow: var(--shadow-glow);
}

.process-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.process-step p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray);
}

/* ── Testimonials ── */
#testimonials .section-desc {
  margin-bottom: 40px;
}

.testimonials-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  max-width: 100%;
}

.testimonial-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.testimonial-nav:hover:not(:disabled) {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.testimonial-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.testimonials-scroll-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.testimonials-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.testimonial-card {
  flex: 0 0 320px;
  width: 320px;
  scroll-snap-align: start;
  padding: 28px 24px;
  border: 1px solid rgba(59, 181, 245, 0.12);
  background: linear-gradient(160deg, rgba(59, 181, 245, 0.06) 0%, var(--surface-elevated) 55%, rgba(240, 132, 46, 0.05) 100%);
  box-shadow: var(--shadow-inset);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  opacity: 0;
  transition: opacity var(--transition);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 20px;
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  background: linear-gradient(160deg, rgba(240, 132, 46, 0.1) 0%, var(--surface-highlight) 55%, rgba(59, 181, 245, 0.08) 100%);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.testimonial-card:hover::after {
  opacity: 1;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.testimonial-stars {
  margin-bottom: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.testimonial-card blockquote {
  margin: 0 0 16px;
}

.testimonial-card blockquote p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--gray);
}

.testimonial-card cite {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

/* ── Contact Form ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-subtitle,
.form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-details li {
  border-bottom: 1px solid var(--border);
}

.contact-details li:last-child {
  border-bottom: none;
}

.contact-item {
  display: grid;
  grid-template-columns: 20px 90px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  margin: 0 -12px;
  color: var(--gray);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.contact-item:hover {
  background: var(--surface-elevated);
}

.contact-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-dim);
}

.contact-value {
  font-size: 0.9rem;
  color: var(--gray);
  word-break: break-word;
}

.contact-item:hover .contact-value,
.contact-item:hover svg {
  color: var(--white);
}

.footer-social {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 18px;
  max-width: 100%;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link:hover {
  border-color: var(--blue);
  background: var(--blue-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.contact-info {
  padding: 32px;
  border: 1px solid rgba(59, 181, 245, 0.15);
  background: linear-gradient(160deg, rgba(59, 181, 245, 0.08) 0%, var(--surface-elevated) 100%);
  box-shadow: var(--shadow-inset), 0 0 36px rgba(59, 181, 245, 0.05);
}

.lets-talk {
  padding: 32px;
  border: 1px solid rgba(240, 132, 46, 0.18);
  background: linear-gradient(160deg, rgba(240, 132, 46, 0.08) 0%, var(--surface-highlight) 100%);
  box-shadow: var(--shadow-soft), var(--shadow-inset), 0 0 36px rgba(240, 132, 46, 0.05);
}

.form-title {
  margin-bottom: 20px;
}

.lets-talk form {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  color: var(--snow);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

input::placeholder, textarea::placeholder {
  color: var(--gray-dim);
}

input:focus, textarea:focus {
  border-color: var(--blue);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--snow);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), border-color var(--transition), background var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--orange);
  background: var(--orange-subtle);
  color: var(--orange);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button[type="submit"] {
  align-self: flex-start;
  margin-top: 8px;
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin: 12px 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status.success {
  color: var(--white);
}

.form-status.error {
  color: rgba(255, 120, 120, 0.9);
}

/* ── Footer ── */
footer {
  padding: 64px 0 0;
  border-top: 1px solid rgba(240, 132, 46, 0.15);
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(240, 132, 46, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 38% at 100% 100%, rgba(59, 181, 245, 0.12), transparent 55%),
    linear-gradient(180deg, var(--graphite) 0%, var(--ink) 100%);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(150px, 1fr));
  gap: 40px 48px;
  align-items: start;
  padding-bottom: 52px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 16px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding: 0;
  color: var(--white);
  line-height: 1.2;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  opacity: 0.85;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer-col li {
  margin-bottom: 11px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--gray);
}

.footer-col li:last-child {
  margin-bottom: 0;
}

.footer-col a {
  color: var(--gray);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-tagline {
  margin: 14px 0 0;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.65;
  max-width: 260px;
  text-align: left;
}

.footer-contact {
  margin-bottom: 0;
}

.footer-contact li {
  color: var(--gray);
  word-break: break-word;
}

.footer-contact a {
  display: inline-block;
}

.footer-contact-col {
  min-width: 0;
}

.footer-contact-col .footer-social {
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px 32px;
  }

  .footer-contact-col {
    grid-column: 1 / -1;
    max-width: 520px;
  }

  .footer-contact-col .footer-social {
    flex-wrap: nowrap;
  }
}

.footer-bottom {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding: 22px 24px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.35);
}

.footer-bottom p {
  width: 100%;
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gray-dim);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .hero {
    min-height: auto;
    overflow: visible;
  }

  header {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 14px 20px;
  }

  .logo {
    justify-self: start;
  }

  .logo-mark {
    height: 36px;
  }

  .logo-text .brand-zeropixel {
    font-size: 0.95rem;
  }

  .logo-text .brand-studio {
    font-size: 0.58rem;
  }

  .footer-logo-mark {
    height: 48px;
  }

  .footer-logo-text .brand-zeropixel {
    font-size: 1.35rem;
  }

  .footer-logo-text .brand-studio {
    font-size: 0.76rem;
  }

  .logo-img {
    height: 44px;
    max-width: 170px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0 8px;
    border-top: 1px solid var(--border);
    margin-top: 14px;
  }

  header.menu-open .header-nav {
    display: flex;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
  }

  nav a {
    margin: 0;
    font-size: 0.85rem;
  }

  nav a::after {
    bottom: -6px;
  }

  .btn-header {
    justify-self: center;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
    align-items: start;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    max-width: 360px;
  }

  .footer-contact-col {
    grid-column: 1 / -1;
    max-width: none;
  }

  .hero-title {
    font-size: clamp(2.15rem, 9.5vw, 2.65rem);
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .hero-text {
    display: block;
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.78);
  }

  .hero-tagline {
    max-width: none;
    margin: 0 0 14px;
    text-align: left;
    padding: 12px 14px 12px 12px;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: none;
    margin-bottom: 14px;
    padding: 14px 16px;
    gap: 14px 12px;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat {
    min-width: 0;
    padding: 0;
  }

  .hero-stat-num {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .hero-stat-label {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .hero-services {
    margin-bottom: 14px;
  }

  .hero-services-track {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .hero-actions {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero-actions .btn {
    flex: 1;
    width: auto;
    padding: 12px 10px;
    font-size: 0.68rem;
    text-align: center;
  }

  .hero-layout {
    align-items: flex-start;
    min-height: auto;
    padding:
      calc(var(--header-height) + 12px)
      0
      36px;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    padding: 0 20px;
  }

  .hero-content > * {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-bg-img {
    object-position: 62% 38%;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.55) 28%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.2) 100%
      ),
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.1) 100%
      );
  }

  .portfolio-gallery-item {
    flex: 0 0 180px;
    width: 180px;
  }

  .lightbox {
    padding: 56px 16px 24px;
  }

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

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  section {
    padding: 72px 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-media {
    order: -1;
  }

  .contact-item {
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto auto;
  }

  .contact-label {
    grid-column: 2;
  }

  .contact-value {
    grid-column: 2;
    margin-top: -4px;
  }

  button[type="submit"] {
    align-self: stretch;
    text-align: center;
  }

  .trust-carousel {
    gap: 8px;
    padding: 0 12px;
  }

  .trust-nav {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .trust-track {
    gap: 32px;
  }

  .trust-logo {
    min-width: 160px;
    height: 88px;
    padding: 10px 16px;
    opacity: 0.9;
  }

  .trust-logo img {
    max-width: 220px;
    height: 64px;
  }

  .portfolio-category {
    padding: 28px 16px 24px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .testimonial-card {
    flex: 0 0 calc(100% - 20px);
    width: auto;
    min-width: 260px;
  }
}

@media (max-width: 520px) {
  .portfolio-gallery-item {
    flex: 0 0 160px;
    width: 160px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-logo-mark {
    height: 44px;
  }

  .footer-logo-text .brand-zeropixel {
    font-size: 1.25rem;
  }

  .footer-logo-text .brand-studio {
    font-size: 0.72rem;
  }

  .footer-tagline {
    max-width: none;
  }

  .footer-col:last-child {
    padding-bottom: 0;
  }

  .footer-contact-col .footer-social {
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-social {
    margin-top: 16px;
  }

  .footer-bottom {
    padding-top: 20px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .footer-bottom p {
    font-size: 0.7rem;
    line-height: 1.5;
    padding: 0 8px;
  }

  footer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
