/* ==========================================================================
   PIXORA STUDIO — design system + layout
   ========================================================================== */

:root {
  --bg: #0a0a0d;
  --bg-soft: #101014;
  --card: #131318;
  --card-hover: #18181f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f2ee;
  --text-dim: #a7a5ad;
  --text-faint: #6f6d78;

  --accent: #6c5ce7;
  --accent-2: #17b8a6;
  --accent-3: #f43f7d;
  --accent-4: #3b82f6;
  --accent-soft: rgba(108, 92, 231, 0.12);
  --accent-border: rgba(108, 92, 231, 0.4);

  --success: #4ade80;

  --nav-dark: #232323;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 78px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

svg {
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

::selection {
  background: var(--accent);
  color: #0a0a0d;
}

/* Lenis smooth-scroll wrapper */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  position: relative;
  padding-block: clamp(64px, 10vw, 128px);
}

.section-tight {
  padding-block: clamp(48px, 7vw, 88px);
}

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

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-dim);
  font-size: clamp(16px, 1.6vw, 18px);
}

.text-balance {
  text-wrap: balance;
}

/* ---------- buttons ---------- */
.btn {
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  transition: transform 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-fg);
  box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #7d6ff2;
  box-shadow: 0 10px 28px -8px rgba(108, 92, 231, 0.65);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

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

.btn-block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(24, 24, 27, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(20, 20, 23, 0.72);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #f3f2ee;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: var(--radius-full);
}

.nav-links a {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #fff;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-actions .btn-primary {
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(23, 184, 166, 0.5);
}

.nav-actions .btn-primary:hover {
  background: #1fd1bc;
  box-shadow: 0 10px 26px -10px rgba(23, 184, 166, 0.7);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav.is-open .nav-toggle span {
  background: transparent;
}
.nav.is-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}
.nav.is-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(32px, 6vw, 64px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-media {
  position: absolute;
  inset: -10% 0 0 0;
  height: 120%;
  z-index: 0;
  will-change: transform;
}

.hero-media video,
.hero-media .hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(108, 92, 231, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(23, 184, 166, 0.2), transparent 60%),
    #0a0a0d;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0.35) 35%, rgba(8, 8, 10, 0.55) 70%, rgba(6, 6, 8, 0.92) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.hero h1 {
  font-size: clamp(40px, 7.2vw, 92px);
  max-width: 16ch;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
}

.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-dim);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 640px;
}

.hero-meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
}

.hero-meta div span {
  font-size: 13px;
  color: var(--text-faint);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-cue svg {
  animation: cue-bounce 1.8s ease-in-out infinite;
}

@keyframes cue-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* ---------- ambient background life (post-hero sections) ---------- */
@keyframes orb-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3%, -4%) scale(1.08);
  }
}

@keyframes badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.08);
  }
}

.hero-badge .dot {
  animation: badge-pulse 2.4s ease-in-out infinite;
}

#services,
#how-it-works,
#work,
.section-tight {
  position: relative;
  isolation: isolate;
}

#services::before,
#how-it-works::before,
#work::before,
.section-tight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  animation: orb-drift 20s ease-in-out infinite;
}

#services::before {
  background:
    radial-gradient(ellipse 40% 50% at 8% 12%, rgba(108, 92, 231, 0.12), transparent 60%),
    radial-gradient(ellipse 35% 45% at 92% 88%, rgba(23, 184, 166, 0.1), transparent 60%);
}

#how-it-works::before {
  background:
    radial-gradient(ellipse 35% 45% at 95% 10%, rgba(244, 63, 125, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(23, 184, 166, 0.1), transparent 60%);
  animation-delay: -6s;
}

#work::before {
  background:
    radial-gradient(ellipse 40% 50% at 90% 15%, rgba(59, 130, 246, 0.1), transparent 60%),
    radial-gradient(ellipse 35% 45% at 10% 85%, rgba(244, 63, 125, 0.09), transparent 60%);
  animation-delay: -12s;
}

.section-tight::before {
  background:
    radial-gradient(ellipse 35% 50% at 12% 90%, rgba(59, 130, 246, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 45% at 88% 10%, rgba(108, 92, 231, 0.1), transparent 60%);
  animation-delay: -3s;
}

/* button shine sweep */
.btn-primary {
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

/* faq hover life */
.faq-item {
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

/* ---------- page hero (about/contact) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 88px);
  padding-bottom: 72px;
  overflow: hidden;
  background: var(--bg);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 130%;
  pointer-events: none;
}

.page-hero::before {
  top: -20%;
  right: -10%;
  background: radial-gradient(ellipse, rgba(108, 92, 231, 0.18), transparent 65%);
}

.page-hero::after {
  top: -10%;
  left: -12%;
  background: radial-gradient(ellipse, rgba(23, 184, 166, 0.12), transparent 65%);
}

.page-hero .eyebrow {
  justify-content: center;
}

.page-hero h1 {
  font-size: clamp(34px, 5.6vw, 64px);
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-faint);
}

.breadcrumbs a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: var(--accent);
}

/* ---------- stats strip ---------- */
.stats {
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
}

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

.stat h3 {
  font-size: clamp(28px, 3.6vw, 44px);
  color: var(--text);
}

.stat:nth-child(4n+1) h3 { color: var(--accent); }
.stat:nth-child(4n+2) h3 { color: var(--accent-2); }
.stat:nth-child(4n+3) h3 { color: var(--accent-3); }
.stat:nth-child(4n+4) h3 { color: var(--accent-4); }

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-faint);
  font-weight: 500;
}

/* ---------- service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--card-hover);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.55);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.45s var(--ease), background 0.3s ease;
}

.card:hover .card-icon {
  transform: rotate(-8deg) scale(1.08);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.grid-3 .card:nth-child(6n+1) .card-icon { color: var(--accent); background: rgba(108, 92, 231, 0.12); border-color: rgba(108, 92, 231, 0.35); }
.grid-3 .card:nth-child(6n+2) .card-icon { color: var(--accent-2); background: rgba(23, 184, 166, 0.12); border-color: rgba(23, 184, 166, 0.35); }
.grid-3 .card:nth-child(6n+3) .card-icon { color: var(--accent-3); background: rgba(244, 63, 125, 0.12); border-color: rgba(244, 63, 125, 0.35); }
.grid-3 .card:nth-child(6n+4) .card-icon { color: var(--accent-4); background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.35); }
.grid-3 .card:nth-child(6n+5) .card-icon { color: var(--accent-2); background: rgba(23, 184, 166, 0.12); border-color: rgba(23, 184, 166, 0.35); }
.grid-3 .card:nth-child(6n+6) .card-icon { color: var(--accent-3); background: rgba(244, 63, 125, 0.12); border-color: rgba(244, 63, 125, 0.35); }

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

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-faint);
  border: 1px solid var(--border);
}

/* ---------- process / how we work ---------- */
.process {
  position: relative;
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.process-line {
  position: absolute;
  top: 27px;
  left: 6%;
  height: 1px;
  width: 0%;
  background: var(--accent);
  z-index: 1;
  transition: width 0.1s linear;
}

.process-step {
  position: relative;
  z-index: 2;
}

.process-num {
  counter-increment: step;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.process-step.in-view .process-num {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.process-step:nth-child(4n+2).in-view .process-num { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 0 6px rgba(23, 184, 166, 0.15); }
.process-step:nth-child(4n+3).in-view .process-num { background: var(--accent-3); border-color: var(--accent-3); box-shadow: 0 0 0 6px rgba(244, 63, 125, 0.15); }
.process-step:nth-child(4n+4).in-view .process-num { background: var(--accent-4); border-color: var(--accent-4); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15); }

.process-step h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

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

/* ---------- portfolio / recent work ---------- */
.work-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.work-tab {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.25s ease;
}

.work-tab:hover {
  color: var(--text);
}

.work-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

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

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.45s var(--ease), border-color 0.4s ease, box-shadow 0.45s ease;
}

.work-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px -26px rgba(0, 0, 0, 0.6);
}

.work-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.work-card.is-loaded video {
  opacity: 1;
}

.work-thumb {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-hover), var(--bg-soft));
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(108, 92, 231, 0.35), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(23, 184, 166, 0.25), transparent 55%);
}

.work-play {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.work-card:hover .work-play {
  transform: scale(1.1);
  background: var(--accent);
  border-color: var(--accent);
}

.work-play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
  color: #fff;
}

.work-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 18px;
  background: linear-gradient(0deg, rgba(6, 6, 8, 0.88), transparent);
}

.work-info .tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: transparent;
  margin-bottom: 8px;
}

.work-info h4 {
  font-family: var(--font-display);
  font-size: 16px;
}

.work-info p {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

.work-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, background 0.4s ease;
}

.testi-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--card-hover);
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--accent-4);
}

.stars svg {
  width: 15px;
  height: 15px;
}

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

.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.testi-person strong {
  display: block;
  font-size: 14px;
}

.testi-person span {
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(40px, 7vw, 80px);
  background: #131217;
  border: 1px solid var(--border);
  text-align: center;
}

.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(10px);
  animation: orb-drift 14s ease-in-out infinite;
}

.cta-banner::before {
  width: 55%;
  height: 140%;
  top: -40%;
  left: -10%;
  background: radial-gradient(ellipse, rgba(108, 92, 231, 0.28), transparent 60%);
}

.cta-banner::after {
  width: 50%;
  height: 130%;
  bottom: -35%;
  right: -8%;
  background: radial-gradient(ellipse, rgba(23, 184, 166, 0.22), transparent 60%);
  animation-delay: -7s;
  animation-direction: reverse;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 20ch;
  margin-inline: auto;
  position: relative;
}

.cta-banner p {
  position: relative;
  max-width: 46ch;
  margin: 18px auto 32px;
  color: var(--text-dim);
}

.cta-banner .hero-actions {
  justify-content: center;
  margin-top: 0;
  position: relative;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 64px 32px;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 32ch;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0d;
}

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

.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

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

.footer-links a {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- about page specifics ---------- */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--card), var(--bg-soft));
}

.story-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(108, 92, 231, 0.32), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(23, 184, 166, 0.2), transparent 55%);
}

.story-visual .float-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(10, 10, 13, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.story-visual .float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
}
.story-visual .float-card span {
  font-size: 12.5px;
  color: var(--text-faint);
}

.story-copy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 20px;
}

.story-copy p {
  color: var(--text-dim);
  margin-bottom: 16px;
}

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

.value-card {
  text-align: center;
  padding: 32px 22px;
}

.value-card .card-icon {
  margin-inline: auto;
}

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

.team-card {
  text-align: center;
  padding: 28px 20px;
}

.team-card .avatar {
  width: 76px;
  height: 76px;
  font-size: 22px;
  margin-inline: auto 0;
  margin-bottom: 18px;
}

.team-card strong {
  display: block;
  font-size: 15.5px;
}

.team-card span {
  display: block;
  font-size: 13px;
  color: var(--accent);
  margin-top: 3px;
  margin-bottom: 10px;
}

.team-card p {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.form-card,
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.06);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* upload dropzone */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
  position: relative;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.dropzone strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.dropzone span {
  font-size: 12.5px;
  color: var(--text-faint);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.file-chip .file-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-chip .file-icon svg {
  width: 15px;
  height: 15px;
}

.file-chip .file-meta {
  flex: 1;
  min-width: 0;
}

.file-chip .file-meta strong {
  display: block;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-chip .file-meta span {
  font-size: 11.5px;
  color: var(--text-faint);
}

.file-chip button {
  background: transparent;
  border: none;
  color: var(--text-faint);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.file-chip button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.file-chip button svg {
  width: 14px;
  height: 14px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #86efac;
  font-size: 14px;
  margin-top: 18px;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

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

.info-item .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 3px;
}

.info-item span,
.info-item a {
  font-size: 13.5px;
  color: var(--text-dim);
}

.info-item a:hover {
  color: var(--accent);
}

.map-block {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-pin {
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.map-pin svg {
  transform: rotate(45deg);
  width: 18px;
  height: 18px;
  color: #fff;
}

/* faq */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
}

.faq-q .plus {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
}

.faq-item.is-open .faq-q .plus {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-a p {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal-group].in-view > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group].in-view > *:nth-child(1) { transition-delay: 0.02s; }
[data-reveal-group].in-view > *:nth-child(2) { transition-delay: 0.09s; }
[data-reveal-group].in-view > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-group].in-view > *:nth-child(4) { transition-delay: 0.23s; }
[data-reveal-group].in-view > *:nth-child(5) { transition-delay: 0.3s; }
[data-reveal-group].in-view > *:nth-child(6) { transition-delay: 0.37s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-group] > * {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-dark);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    gap: 4px;
  }
  .nav.is-open .nav-links a {
    padding: 13px 16px;
    color: var(--text-dim);
  }
  .nav.is-open .nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
  }
  .nav.is-open .nav-links a.active {
    color: #fff;
    background: var(--accent);
  }

  .grid-3,
  .work-grid,
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-track::before,
  .process-line { display: none; }
  .story-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .story-layout { gap: 40px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .grid-3,
  .grid-4,
  .work-grid,
  .testi-grid,
  .team-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-banner { padding: 40px 22px; }
}
