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

/* ── Theme Variables ────────────────────────────── */
:root {
  --font-heading: 'Oswald', Arial, sans-serif;
  --font-body: 'Space Grotesk', Arial, sans-serif;
  --accent: #e02020;
  --accent-hover: #ff2a2a;
  --accent-glow: rgba(224, 32, 32, 0.5);
  --neon-magenta: #ff2a2a;
  --neon-red: #e02020;
}

[data-theme="light"] {
  --bg: #faf9f7;
  --bg-alt: #f0eeeb;
  --text: #1a1a1a;
  --text-muted: #7a7a7a;
  --border: #e0ddd8;
}

[data-theme="dark"] {
  --bg: #0e0e0e;
  --bg-alt: #161616;
  --text: #f0ece6;
  --text-muted: #6a6a6a;
  --border: #252525;
}

/* ── Intro Overlay ─────────────────────────────── */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
}

.intro-overlay.fade-out {
  animation: introSlideUp 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.intro-logo-wrap { position: relative; overflow: hidden; }

.intro-logo {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: introFadeIn 0.8s ease forwards 0.3s;
}

.intro-line {
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.2);
  animation: introLineExpand 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.6s;
}

.intro-tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  opacity: 0;
  animation: introFadeIn 0.6s ease forwards 1s;
}

@keyframes introFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introLineExpand {
  from { width: 0; } to { width: 160px; }
}

@keyframes introSlideUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 1; }
}

/* ── Base ───────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Subtle film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection {
  background: #a020f0;
  color: #fff;
}

/* ── Utility ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 5rem 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0, #e02020, #ff6b6b);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.9375rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
  transition: text-shadow 0.4s ease;
}

.section-title:hover {
  text-shadow: 0 0 15px rgba(160, 32, 240, 0.2), 0 0 40px rgba(224, 32, 32, 0.08);
}

.body-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 540px;
}

.body-text p {
  margin-bottom: 1rem;
}

.body-text p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0) 1;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0, #e02020, #ff6b6b);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.btn:hover::before { left: 0; }
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(160, 32, 240, 0.3), 0 4px 20px rgba(224, 32, 32, 0.2);
}

.btn:active { transform: translateY(0); }

.btn-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-light:hover { background: #fff; color: #111; border-color: #fff; }

/* ── Accent Gradient Text ──────────────────────── */
.accent-gradient-text {
  background: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0, #e02020, #ff6b6b);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Fade-in ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navigation ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
}

.nav-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0);
  transition: filter 0.4s ease;
}

[data-theme="dark"] .nav-logo-img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s ease;
}

/* White nav text over hero before scrolling */
.nav:not(.scrolled) .nav-links a { color: #fff; }
.nav:not(.scrolled) .nav-logo-img { filter: brightness(0) invert(1); }
.nav:not(.scrolled) .theme-toggle { color: rgba(255,255,255,0.6); }
.nav:not(.scrolled) .theme-toggle:hover { color: #fff; }
.nav:not(.scrolled) .nav-hamburger span { background: #fff; }

.nav-links a:hover {
  background: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0, #e02020, #ff6b6b);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.theme-toggle:hover { color: var(--text); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.nav-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: background 0.3s ease;
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  position: relative;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center 25%;
  margin-top: -12%;
  filter: brightness(0.6) contrast(1.1) saturate(1.2);
  will-change: transform;
  transform: translateY(0);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.9) 0%,
      rgba(0,0,0,0.7) 20%,
      rgba(0,0,0,0.2) 40%,
      rgba(0,0,0,0.05) 60%,
      rgba(0,0,0,0) 100%
    );
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 100vh;
  padding-bottom: 2rem;
  padding-left: 3rem;
  margin-left: 0;
  max-width: none;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 2px 60px rgba(0,0,0,0.5);
  opacity: 0;
  animation: heroFadeUp 1s ease 2.8s forwards;
}

.hero-title strong {
  font-weight: 500;
  font-style: normal;
  display: inline;
  font-size: inherit;
}

.hero-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0, #e02020, #ff6b6b);
  background-size: 300% 300%;
  animation: heroFadeUp 0.8s ease 3.2s forwards, gradientShift 6s ease infinite;
  margin: 0.6rem 0;
  opacity: 0;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 3.6s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 5.5s forwards;
}

.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); transform-origin: top; }
}

.hero-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 4.2s forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-links a {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  position: relative;
  padding-bottom: 3px;
}

.hero-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.hero-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Work / Portfolio Grid ──────────────────────── */
.work {
  background: var(--bg);
  position: relative;
}

.work::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 10;
}

.work-header { margin-bottom: 3rem; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 280px;
  gap: 6px;
}

/* Dynamic grid sizing — featured items are larger */
.work-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.work-item:nth-child(2) { grid-column: span 4; grid-row: span 1; }
.work-item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.work-item:nth-child(4) { grid-column: span 4; grid-row: span 1; }
.work-item:nth-child(5) { grid-column: span 3; grid-row: span 1; }

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.work-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.work-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-item:hover .work-overlay { opacity: 1; }

.work-overlay-text { color: #fff; transform: translateY(10px); transition: transform 0.4s ease; }
.work-item:hover .work-overlay-text { transform: translateY(0); }

.work-overlay-text h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.work-overlay-text span {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  background: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0, #e02020, #ff6b6b);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.work-cta { text-align: center; margin-top: 3.5rem; }

/* Image Hover Lift */
.work-item::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 0 rgba(255,255,255,0.1);
  transition: box-shadow 0.4s ease;
  pointer-events: none;
}

.work-item:hover::after {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2);
}

/* ── About ──────────────────────────────────────── */
.about {
  background: var(--bg-alt);
  transition: background-color 0.4s ease;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, var(--bg), var(--bg-alt));
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

/* ── Quote Banner ──────────────────────────────── */
.quote-banner {
  background: #0a0a0c;
  color: #f0ece6;
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: -0.01em;
  position: relative;
}

.quote-text-content {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-banner.visible .quote-text-content {
  opacity: 1;
  transform: translateY(0);
}

.quote-line {
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 1.5rem auto;
  transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.quote-line--top { transition-delay: 0.6s; }
.quote-line--bottom { transition-delay: 1s; }

.quote-banner.visible .quote-line {
  width: 60px;
}

.quote-attr {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease 1.2s, transform 1s ease 1.2s;
}

.quote-banner.visible .quote-attr {
  opacity: 0.4;
  transform: translateY(0);
}

/* ── Scrolling Marquee ────────────────────────────── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.4s ease;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 20s linear infinite;
}

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

.marquee-item {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--text);
  padding: 0 1.5rem;
  flex-shrink: 0;
  transition: color 0.4s ease;
}

.marquee-separator {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0, #e02020, #ff6b6b);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Services ───────────────────────────────────── */
.services {
  background: var(--bg);
  transition: background-color 0.4s ease;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header .body-text { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  transition: background-color 0.4s ease;
}

.service-card {
  background: var(--bg);
  text-align: center;
  padding: 3.5rem 2.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0);
  transition: width 0.4s ease;
}

.service-card:hover {
  background: var(--bg-alt);
  transform: translateY(-4px);
}

.service-card:hover::after { width: 60px; }

.service-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.3s ease;
}

.service-card:hover .service-icon svg { stroke: var(--text); }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ── Testimonials — 3D Holographic Cards ─────── */
.testimonials {
  background: #0a0a0c;
  padding: 7rem 0;
  overflow: hidden;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.02), transparent 70%);
  pointer-events: none;
}

.testimonials .section-label,
.testimonials .section-title {
  color: #fff;
}

.testimonials .section-label {
  background: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0, #e02020, #ff6b6b);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testi-stage {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
}

.testi-card {
  width: 100%;
  max-width: 700px;
  position: absolute;
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.testi-card-inner {
  position: relative;
  padding: 3rem 3.5rem;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transform-style: preserve-3d;
}

.testi-card-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transform: skewX(-15deg);
  pointer-events: none;
}

.testi-card.active .testi-card-inner::after {
  animation: holoScan 4s ease-in-out infinite;
}

@keyframes holoScan {
  0% { left: -100%; }
  100% { left: 150%; }
}

.testi-card.active {
  opacity: 1;
  transform: translateZ(0) rotateY(0deg) scale(1);
  z-index: 3;
}

.testi-card.prev {
  opacity: 0.3;
  transform: translateX(-65%) translateZ(-150px) rotateY(15deg) scale(0.85);
  z-index: 1;
  pointer-events: none;
}

.testi-card.next {
  opacity: 0.3;
  transform: translateX(65%) translateZ(-150px) rotateY(-15deg) scale(0.85);
  z-index: 1;
  pointer-events: none;
}

.testi-card.hidden {
  opacity: 0;
  transform: translateZ(-300px) scale(0.6);
  z-index: 0;
  pointer-events: none;
}

.testi-photo {
  width: 56px;
  height: 56px;
  border-radius: 0;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 1.5rem;
}

.testi-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 1.25rem;
}

.testi-star {
  width: 12px;
  height: 12px;
  fill: rgba(255,255,255,0.7);
}

.testi-quote {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  position: relative;
}

.testi-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.6rem;
  left: -0.3rem;
  font-family: Georgia, serif;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.12);
  line-height: 1;
}

.testi-author {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

.testi-session {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.3rem;
}

.testi-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 5;
}

.testi-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.testi-arrow:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  transform: scale(1.05);
}

.testi-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 5;
}

.testi-pip {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.testi-pip.active {
  width: 40px;
  background: #fff;
}

.testi-card.active .testi-card-inner {
  transition: transform 0.15s ease-out;
}

/* ── Contact ────────────────────────────────────── */
.contact {
  background: var(--bg-alt);
  transition: background-color 0.4s ease;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group { position: relative; }

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--text);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
}

.form-group select option {
  background: var(--bg);
  color: var(--text);
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details a {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s ease;
}

.contact-details a:hover { color: var(--text); }

.contact-details svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* ── Gallery Strip (edge-to-edge) ─────────────── */
.gallery-strip {
  position: relative;
  padding: 0;
  background: var(--bg);
  transition: background-color 0.4s ease;
}

.gallery-strip-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
}

.gallery-strip-row img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: grayscale(0.3);
}

.gallery-strip-row img:hover {
  filter: grayscale(0);
  transform: scale(1.05);
}

.gallery-strip-label {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 40px;
  background: rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 2;
}

.gallery-strip-label span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}

.gallery-strip-label svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ── Footer ─────────────────────────────────────── */
.footer {
  background: #0a0a08;
  color: #fff;
  padding: 5rem 0 2.5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, #e02020, #ff6b6b, #a020f0);
  opacity: 0.6;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2.5rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #fff;
}

.footer-profile {
  text-align: center;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-profile-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e02020, #ff6b6b, #a020f0, #e02020, #ff6b6b);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
}

.footer-profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  transform: scale(1.25);
  position: relative;
}

.footer-handle {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.footer-handle a {
  color: #fff;
  transition: opacity 0.3s ease;
}

.footer-handle a:hover { opacity: 0.6; }

.footer-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social-circles {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.footer-social-circles a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.footer-social-circles a:hover {
  border-color: #a020f0;
  background: linear-gradient(135deg, rgba(224, 32, 32, 0.2), rgba(160, 32, 240, 0.2));
}

.footer-social-circles svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-contact {
  padding-top: 0.25rem;
}

.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-contact p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.footer-contact a:hover { color: #fff; }

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-bottom-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.3;
}

.footer-copyright {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}

/* ── Side Social Labels ─────────────────────────── */
.side-social {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.side-social a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.6rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  transition: background 0.3s ease;
  backdrop-filter: blur(4px);
}

.side-social a:hover {
  background: linear-gradient(135deg, rgba(224, 32, 32, 0.85), rgba(160, 32, 240, 0.85));
  box-shadow: -4px 0 20px rgba(160, 32, 240, 0.3);
}

.side-social span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.side-social svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* ── Back to Top ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-2px);
  border-color: #a020f0;
  color: #a020f0;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ── Mobile Menu ────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: opacity 0.3s ease;
}

.mobile-menu a:hover { opacity: 0.5; }

/* ── Scroll Progress Bar ────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #e02020, #ff6b6b, #a020f0);
  z-index: 9999;
}

/* ── Stagger System ──────────────────────────────── */
.stagger-parent > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.stagger-parent.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Clip-Path Image Reveal ───────────────────── */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.clip-reveal.visible {
  clip-path: inset(0 0 0 0);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; }
  .work-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .work-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
  .work-item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
  .work-item:nth-child(4) { grid-column: span 3; grid-row: span 1; }
  .work-item:nth-child(5) { grid-column: span 3; grid-row: span 1; }
  .work-item:nth-child(6) { grid-column: span 3; grid-row: span 2; }
  .work-item:nth-child(7) { grid-column: span 3; grid-row: span 1; }
  .work-item:nth-child(8) { grid-column: span 3; grid-row: span 1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip-row { grid-template-columns: repeat(4, 1fr); }
  .gallery-strip-row img:nth-child(n+5) { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image img { height: 350px; }
  .work-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
  .work-item:nth-child(n) { grid-column: span 2; grid-row: span 1; }
  .work-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .services-grid { grid-template-columns: 1fr; }

  .gallery-strip-row { grid-template-columns: repeat(3, 1fr); }
  .gallery-strip-row img:nth-child(n+4) { display: none; }
  .gallery-strip-label { display: none; }

  .hero { min-height: 90vh; }
  .hero .container { min-height: 90vh; padding-bottom: 2rem; }
  .hero-title { font-size: clamp(2rem, 8vw, 3.5rem); }

  .footer-main { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .footer-heading { font-size: 1.6rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .side-social { display: none; }
  .back-to-top { right: 1rem; bottom: 1rem; }
  .section-padding { padding: 4rem 0; }

  .testi-card.prev,
  .testi-card.next { opacity: 0; }
  .testi-card-inner { padding: 2rem 1.5rem; }
  .testi-stage { min-height: 350px; }
}

/* ── Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .clip-reveal, .stagger-parent > *, .quote-half, .quote-attr, .quote-line {
    opacity: 1 !important; transform: none !important; filter: none !important;
    clip-path: none !important; width: auto !important;
  }
  .hero-title, .hero-links { opacity: 1 !important; transform: none !important; }
}
