/* ================================================================
   Initios Designs 2026 — Ascend Marketing faithful replica
   Font: DM Sans | Palette: #000 bg / #fff text / #888 muted
   ================================================================ */

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

:root {
  --bg:         #000000;
  --bg-card:    #0f0f0f;
  --bg-card2:   #141414;
  --border:     rgba(255,255,255,0.1);
  --text:       rgba(255,255,255,0.9);
  --text-muted: rgba(255,255,255,0.45);
  --text-dim:   rgba(255,255,255,0.22);
  --white:      #ffffff;
  --font:       'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h:      68px;
  --trans:      0.28s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ================================================================
   FULL-PAGE 3D BACKGROUND (Three.js metallic spiral)
   ================================================================ */
#bg3d,
#bg3d-col,
#bg3d-vortex,
#bg3d-gallery {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
/* Left-weighted scrim keeps left-aligned text legible while the
   chrome spiral remains visible toward the right (Ascend composition) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(6,6,6,0.6) 0%,
    rgba(6,6,6,0.22) 50%,
    rgba(6,6,6,0.0) 80%);
}
/* All content sits above the 3D layer */
#navbar, .section, .site-footer { position: relative; z-index: 1; }

/* ================================================================
   NAVIGATION
   ================================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  transition: background var(--trans), border-color var(--trans);
}
#navbar.scrolled {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
}
.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  /* The logo is the ONLY element allowed to carry colour */
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links .nav-link {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--trans);
}
.nav-links .nav-link:hover,
.nav-links .nav-link.active { color: var(--white); }
.nav-links .nav-cta {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  transition: background var(--trans), border-color var(--trans);
}
.nav-links .nav-cta:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
}

/* ================================================================
   SHARED UTILITIES
   ================================================================ */
.section { position: relative; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 4vw; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-heading {
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */
@keyframes btn-swirl {
  0%   { --btn-angle: 0deg; }
  100% { --btn-angle: 360deg; }
}

@property --btn-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans);
  border: none;
  white-space: nowrap;
  position: relative;
  z-index: 0;
}

/* Swirling neon-red conic gradient border via ::before */
.btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: conic-gradient(
    from var(--btn-angle),
    #c00000 0%,
    #ff1a1a 15%,
    #660000 30%,
    transparent 45%,
    transparent 70%,
    #ff1a1a 85%,
    #c00000 100%
  );
  animation: btn-swirl 3s linear infinite;
  z-index: -2;
  opacity: 0.9;
  transition: box-shadow 0.3s ease;
}

/* Inner mask: sits above gradient but below text */
.btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  z-index: -1;
  transition: background 0.3s ease;
}

/* Text renders above the ::after mask by making the btn a new stacking layer above it */

.btn-white {
  background: #ffffff;
  color: #000;
}
.btn-white::after { background: #ffffff; }
.btn-white:hover { background: rgba(255,255,255,0.92); }
.btn-white:hover::after { background: rgba(255,255,255,0.92); }
.btn-white:hover::before { box-shadow: 0 0 18px 4px rgba(200,0,0,0.55), 0 0 40px 8px rgba(180,0,0,0.25); }

.btn-outline {
  background: #0a0a0a;
  color: var(--white);
}
.btn-outline::after { background: #0a0a0a; }
.btn-outline:hover { background: #141414; }
.btn-outline:hover::after { background: #141414; }
.btn-outline:hover::before { box-shadow: 0 0 18px 4px rgba(200,0,0,0.55), 0 0 40px 8px rgba(180,0,0,0.25); }

.btn-full { width: 100%; justify-content: center; }

/* ================================================================
   HERO  — split: left content | right Spline
   ================================================================ */
.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 5vw 4rem 4vw;
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.scroll-hint {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.scroll-hint::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--text-dim);
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.75rem;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
}

.hero-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 2.5rem;
}
.hero-body strong { color: var(--white); font-weight: 500; }

.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ================================================================
   AGENCY SECTION
   ================================================================ */
.section-agency {
  position: relative;
  padding: 9rem 0;
  background: transparent;
  border-top: 1px solid var(--border);
}
.section-agency > .container {
  position: relative;
  z-index: 1;
}
.agency-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: flex-start;
}
.agency-left { padding-top: 0.25rem; }

/* Heading block — card */
.agency-right .section-heading {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
  background: rgba(4, 4, 4, 0.30);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  padding: 2rem 2.2rem;
}
.agency-sub {
  display: block;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--text-muted);
}

/* Services list — individual cards */
.agency-services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.agency-service {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  background: rgba(4, 4, 4, 0.30);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s ease;
  transform: perspective(600px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  will-change: transform;
}
.agency-service:hover {
  border-color: rgba(255,255,255,0.14);
  background: rgba(10, 10, 10, 0.42);
  transform: perspective(600px) rotateX(2deg) rotateY(-3deg) translateY(-3px);
}
.service-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.60);
  font-size: 1.75rem;
  flex-shrink: 0;
  transition: color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.agency-service h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.agency-service p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ================================================================
   PHILOSOPHY — refined card grid with highlights
   ================================================================ */
.section-philosophy {
  background: transparent;
  padding: 9rem 0;
  border-top: 1px solid var(--border);
}
.section-philosophy .eyebrow { display: block; }
.section-philosophy > .container > .section-heading {
  margin-bottom: 3.5rem;
}
.section-philosophy .section-heading em { font-style: italic; font-weight: 400; color: var(--text-muted); }

.phil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.phil-card {
  position: relative;
  padding: 2.75rem 2.25rem 2.5rem;
  background: rgba(12,12,12,0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--trans), transform 0.4s ease, background var(--trans);
  transform: perspective(700px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  will-change: transform;
}
.phil-card:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(16,16,16,0.7);
  transform: perspective(700px) rotateX(2deg) rotateY(-3deg) translateY(-6px);
}
.phil-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.55);
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.phil-card h3 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.phil-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.95;
}
.phil-card p strong {
  color: var(--white);
  font-weight: 600;
}

/* ================================================================
   STATS
   ================================================================ */
.section-stats {
  padding: 9rem 0;
  background: transparent;
  border-top: 1px solid var(--border);
}
.stats-heading {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 4rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.stat-item {
  padding: 3rem 3rem 3rem 0;
  border-top: 1px solid var(--border);
}
.stat-item:last-child {
  padding-left: 3rem;
  padding-right: 0;
  border-left: 1px solid var(--border);
}
.stat-figure {
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  margin-bottom: 0.25rem;
}
.stat-num {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--white);
  line-height: 1;
  position: relative;
  display: inline-block;
}

@keyframes icon-shimmer {
  0%   { color: rgba(255,255,255,0.45); box-shadow: none; border-color: rgba(255,255,255,0.10); }
  35%  { color: #ffffff; box-shadow: 0 0 18px 4px rgba(220,220,220,0.6), 0 0 6px 1px rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.55); }
  65%  { color: rgba(210,210,210,0.9); box-shadow: 0 0 10px 2px rgba(200,200,200,0.3); border-color: rgba(255,255,255,0.3); }
  100% { color: rgba(255,255,255,0.45); box-shadow: none; border-color: rgba(255,255,255,0.10); }
}
.service-num.icon-shimmer,
.phil-num.icon-shimmer {
  animation: icon-shimmer 1.1s ease forwards;
}

@keyframes stat-shimmer {
  0%   { color: #ffffff; text-shadow: none; }
  30%  { color: #ff2222; text-shadow: 0 0 30px rgba(255,0,0,0.8), 0 0 60px rgba(200,0,0,0.5); }
  60%  { color: #ff4444; text-shadow: 0 0 20px rgba(255,30,30,0.6); }
  100% { color: #ffffff; text-shadow: none; }
}
.stat-num.shimmer {
  animation: stat-shimmer 1.2s ease forwards;
}
.stat-sup {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1;
}
.stat-unit {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.stat-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 380px;
}

/* ================================================================
   CLIENTS — pinned heading + vertical logo marquee
   ================================================================ */
.section-clients {
  padding: 9rem 0;
  background: transparent;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.clients-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.clients-intro { position: sticky; top: 20vh; }
.clients-intro .section-heading { margin-bottom: 1.25rem; }
.clients-intro .section-heading em { font-style: italic; font-weight: 400; }
.clients-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Two vertical columns of logos auto-scrolling in opposite directions */
.clients-marquee {
  position: relative;
  height: 78vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.logo-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  will-change: transform;
}
.logo-col-up   { animation: logoUp 26s linear infinite; }
.logo-col-down { animation: logoDown 26s linear infinite; }
.clients-marquee:hover .logo-col { animation-play-state: paused; }

@keyframes logoUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes logoDown {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.logo-tile {
  flex: 0 0 auto;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color var(--trans), background var(--trans), transform 0.4s ease;
  transform: perspective(500px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  will-change: transform;
}
.logo-tile:hover {
  border-color: rgba(255,255,255,0.25);
  background: var(--bg-card2);
  transform: perspective(500px) rotateX(2deg) rotateY(-3deg) translateY(-4px);
}
.logo-tile img {
  max-width: 60%;
  max-height: 46px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.75);
  transition: filter var(--trans);
}
.logo-tile:hover img { filter: grayscale(0%) brightness(1); }

/* ================================================================
   CTA
   ================================================================ */
.section-cta {
  padding: 10rem 0;
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.section-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.cta-heading {
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 3rem;
}

/* ================================================================
   GALLERY — pinned horizontal scroll
   ================================================================ */
.section-gallery {
  padding: 0;
  background: transparent;
  border-top: 1px solid var(--border);
}
.gallery-track {
  position: relative;
  height: 360vh;            /* vertical scroll distance that drives horizontal motion */
}
.gallery-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.gallery-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 6vw;
  will-change: transform;
}
.gallery-intro {
  flex: 0 0 auto;
  width: 360px;
  padding-right: 2rem;
}
.gallery-intro .section-heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.25rem;
}
.gallery-intro p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.gallery-hint {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.gcard {
  flex: 0 0 auto;
  width: 380px;
  height: 500px;
  transition: transform 0.4s ease;
  transform: perspective(800px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  will-change: transform;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  border: 1px solid var(--border);
}
.gcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.55s ease, transform 0.6s ease;
}
.gcard:hover img {
  filter: grayscale(0%) brightness(1.05) saturate(1.15);
  transform: scale(1.05);
}
.gcard figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--white);
  background: rgba(0,0,0,0.5);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gc-title {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.gc-meta {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ================================================================
   AWARDS — grayscale video background + recognitions
   ================================================================ */
.section-awards {
  padding: 9rem 0;
  background: transparent;
  border-top: 1px solid var(--border);
}
.awards-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.awards-head .eyebrow { display: block; }
.awards-media {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 4vw;
}
.awards-video-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  border-radius: 16px;
  /* Animated red glow border */
  padding: 2px;
  background: conic-gradient(
    from var(--btn-angle),
    #c00000 0%,
    #ff1a1a 15%,
    #660000 30%,
    transparent 45%,
    transparent 70%,
    #ff1a1a 85%,
    #c00000 100%
  );
  animation: btn-swirl 4s linear infinite;
  box-shadow: 0 0 24px 4px rgba(180,0,0,0.35), 0 0 60px 10px rgba(140,0,0,0.15);
}
.awards-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  filter: grayscale(100%) contrast(1.04);
}

/* ================================================================
   CONTACT
   ================================================================ */
.section-contact {
  padding: 9rem 0;
  background: transparent;
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  align-items: flex-start;
}
.contact-heading {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1rem;
}
.contact-left > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.social-list a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--trans);
}
.social-list a:hover { color: var(--white); }
.social-list i {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: var(--bg-card);
  transition: border-color var(--trans), background var(--trans);
}
.social-list a:hover i {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 400;
  outline: none;
  transition: border-color var(--trans);
  resize: none;
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }
.form-field input:focus,
.form-field textarea:focus { border-color: rgba(255,255,255,0.35); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  padding: 2.5rem 4vw;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.5);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
}
.footer-nav { display: flex; gap: 2rem; }
.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--trans);
}
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1px dotted var(--text-dim);
  transition: color var(--trans);
}
.footer-email:hover { color: var(--white); }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.36s; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .agency-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item:last-child { border-left: none; padding-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(0,0,0,0.97);
    padding: 2rem 4vw;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-left { padding: calc(var(--nav-h) + 1.5rem) 4vw 4rem; }

  .card-inner { grid-template-columns: 1fr; min-height: auto; }
  .card-logos { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); padding: 2rem; }
  .card-text { padding: 2rem; }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }

  /* Gallery: stack vertically instead of horizontal scroll */
  .gallery-track { height: auto; }
  .gallery-sticky { position: static; height: auto; overflow: visible; }
  .gallery-row { flex-direction: column; transform: none !important; padding: 6rem 4vw; gap: 1rem; }
  .gallery-intro { width: 100%; padding-right: 0; margin-bottom: 1rem; }
  .gcard { width: 100%; height: 320px; }

  /* Clients: stack heading above logo marquee */
  .clients-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .clients-intro { position: static; }
  .clients-marquee { height: 60vh; }

  /* Philosophy: stack cards */
  .phil-grid { grid-template-columns: 1fr; }
}
