/* ============================================
   Sebastian - Full Cycle Producing
   Dark theme matching original design
   ============================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Colors - dark theme at 95% */
  --color-bg: #0d0d0d;
  --color-bg-surface: #141414;
  --color-text: #f2f2f2;
  --color-text-muted: #999;
  --color-accent: #c9a227;
  --color-accent-hover: #d4af37;
  --color-accent-active: #b89220;

  /* Section backgrounds - dark alternating with more contrast */
  --bg-section-1: #0a0a0a;
  --bg-section-2: #1a1a1a;

  /* Fluid type scale */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: clamp(1.1rem, 1.2vw, 1.25rem);
  --step-2: clamp(1.4rem, 2vw, 1.9rem);
  --step-3: clamp(2rem, 3vw, 2.6rem);
  --step-4: clamp(2.6rem, 4vw, 3.4rem);

  /* 8px grid spacing system (2025 standard) */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 5rem;     /* 80px */
  --space-4xl: 6rem;     /* 96px */
  --space-5xl: 8rem;     /* 128px */

  /* Section vertical padding - fluid */
  --section-pad-y: clamp(4rem, 10vw, 7rem);
  --section-pad-x: clamp(1rem, 5vw, 4rem);

  /* Headline spacing (1.5x rule: more above than below) */
  --headline-margin-top: clamp(0rem, 2vw, 0rem);
  --headline-margin-bottom: clamp(1.5rem, 4vw, 2.5rem);

  /* Legacy spacing (for compatibility) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;

  /* Layout */
  --page-max: 1400px;
  --page-pad: clamp(1rem, 4vw, 2rem);

  /* Section styling */
  --section-radius: clamp(24px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 0.9vw + 11px, 18px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: disc;
  padding-left: 1.25rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* === PLACEHOLDERS (temporary) === */
.placeholder {
  background: #1a1a1a;
  border: 2px dashed #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buttons: see buttons.css */

/* === DEBUG MODE (toggle with "c") === */
body.debug * {
  outline: 1px solid rgba(255, 0, 0, 0.4) !important;
}

body.debug *:hover {
  outline: 2px solid rgba(0, 255, 0, 0.8) !important;
}

body.debug section {
  outline: 2px solid rgba(0, 100, 255, 0.6) !important;
}

body.debug .hero-grid,
body.debug .about-inner,
body.debug .clients-grid,
body.debug .footer-inner {
  outline: 2px dashed rgba(255, 255, 0, 0.6) !important;
}

/* === SECTION TITLE === */
.section-title {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.section-headline {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  color: var(--color-text);
  margin-top: var(--headline-margin-top);
  margin-bottom: var(--headline-margin-bottom);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-headline em {
  font-style: italic;
  color: #c9a227;
}

.section-subtitle {
  font-size: var(--step-0);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.clients.in-view .section-headline,
.clients.in-view .section-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(17, 17, 17, 0.71);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  border: 2px solid var(--btn-primary-bg);
  border-radius: 50%;
  color: var(--btn-primary-bg);
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: var(--btn-primary-bg);
  color: #000;
  transform: translateY(-2px);
}

.social-icon:active {
  background: var(--btn-primary-bg-active);
  border-color: var(--btn-primary-bg-active);
  transform: translateY(0);
}

/* === HERO === */
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(80px + 100px) 2rem calc(4rem + var(--section-radius));
  background: var(--bg-section-1);
  border-radius: 0 0 var(--section-radius) var(--section-radius);
  position: relative;
  z-index: 2;
}

.hero-wrapper {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md) 0;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-title .future-year {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--btn-primary-bg);
  text-shadow: 0 0 30px rgba(201, 162, 39, 0.4);
}

.hero-title-main {
  color: var(--color-text);
}

.hero-title .hero-accent {
  color: var(--color-accent) !important;
}

.hero-accent .letter {
  display: inline-block;
  opacity: 0;
  animation: letterIn 0.6s ease forwards;
}

.hero-accent .letter:nth-child(odd) {
  transform: translateY(-30%);
}

.hero-accent .letter:nth-child(even) {
  transform: translateY(30%);
}

/* Randomized delays for each letter */
.hero-accent .letter:nth-child(1) { animation-delay: 0.05s; }
.hero-accent .letter:nth-child(2) { animation-delay: 0.18s; }
.hero-accent .letter:nth-child(3) { animation-delay: 0.08s; }
.hero-accent .letter:nth-child(4) { animation-delay: 0.22s; }
.hero-accent .letter:nth-child(5) { animation-delay: 0.12s; }
.hero-accent .letter:nth-child(6) { animation-delay: 0.25s; }
.hero-accent .letter:nth-child(7) { animation-delay: 0.03s; }
.hero-accent .letter:nth-child(8) { animation-delay: 0.15s; }

@keyframes letterIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-video {
  max-width: 765px;
  margin: 1rem auto;
  text-align: center;
  opacity: 0;
  animation: glitchReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

@keyframes glitchReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(8px);
  }
  20% {
    opacity: 1;
    transform: translateY(10px) scale(1);
    filter: blur(0) drop-shadow(-15px 0 0 rgba(255, 0, 0, 0.8)) drop-shadow(15px 0 0 rgba(0, 255, 255, 0.8));
  }
  40% {
    filter: blur(0) drop-shadow(-10px 0 0 rgba(255, 0, 0, 0.6)) drop-shadow(10px 0 0 rgba(0, 255, 255, 0.6));
  }
  60% {
    filter: blur(0) drop-shadow(-5px 0 0 rgba(255, 0, 0, 0.4)) drop-shadow(5px 0 0 rgba(0, 255, 255, 0.4));
  }
  80% {
    filter: blur(0) drop-shadow(-2px 0 0 rgba(255, 0, 0, 0.2)) drop-shadow(2px 0 0 rgba(0, 255, 255, 0.2));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) drop-shadow(0 0 0 transparent);
  }
}

.hero-video .video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

/* Contact QR Code */
.contact-qr {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: qrReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.2s;
}

@keyframes qrReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qr-code-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.qr-code-single:hover {
  transform: scale(1.05);
}

.qr-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.qr-code-single img {
  width: 120px;
  height: 120px;
  display: block;
}

.qr-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: qrShine 0.8s ease-in-out forwards;
  animation-delay: 4s;
  pointer-events: none;
}

@keyframes qrShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.qr-code-single .qr-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Glitch effect - scan lines overlay */
.hero-video .video-container.glitch-active .scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.4) 2px,
    rgba(0, 0, 0, 0.4) 4px
  );
  pointer-events: none;
  opacity: 0;
  animation: scanlineFlash 0.5s steps(1) forwards;
  animation-delay: 0.4s;
  z-index: 10;
}

/* Blocky glitch on video */
.hero-video .video-container.glitch-active video {
  animation: glitchVideo 0.5s steps(1) forwards;
  animation-delay: 0.4s;
}

@keyframes glitchVideo {
  0% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0) skewX(0);
    filter: none;
  }
  5% {
    clip-path: inset(10% 0 60% 0);
    transform: translate(20px, 0) skewX(0);
    filter: saturate(2) hue-rotate(90deg);
  }
  10% {
    clip-path: inset(50% 0 20% 0);
    transform: translate(-15px, 0) skewX(5deg);
    filter: saturate(0.5) contrast(1.5);
  }
  15% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0) skewX(0);
    filter: none;
  }
  20% {
    clip-path: inset(70% 0 10% 0);
    transform: translate(25px, 0);
    filter: hue-rotate(-60deg) saturate(3);
  }
  25% {
    clip-path: inset(20% 0 40% 0);
    transform: translate(-20px, 0) skewX(-3deg);
    filter: saturate(2) brightness(1.3);
  }
  30% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
    filter: none;
  }
  35% {
    clip-path: inset(40% 0 30% 0);
    transform: translate(18px, 0) skewX(4deg);
    filter: hue-rotate(120deg);
  }
  40% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(-12px, 0);
    filter: saturate(0) contrast(2);
  }
  45% {
    clip-path: inset(0 0 0 0);
    transform: translate(10px, 0);
    filter: hue-rotate(30deg);
  }
  50% {
    clip-path: inset(30% 0 50% 0);
    transform: translate(-8px, 0) skewX(-2deg);
    filter: saturate(1.5);
  }
  55% {
    clip-path: inset(0 0 0 0);
    transform: translate(5px, 0);
    filter: none;
  }
  60% {
    clip-path: inset(60% 0 25% 0);
    transform: translate(-5px, 0);
    filter: brightness(0.8);
  }
  65%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0) skewX(0);
    filter: none;
  }
}

@keyframes scanlineFlash {
  0%, 65%, 100% {
    opacity: 0;
  }
  5%, 15%, 25%, 35%, 45%, 55% {
    opacity: 1;
  }
  10%, 20%, 30%, 40%, 50%, 60% {
    opacity: 0.6;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
}

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

.hero-right .video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.hero-right video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Old hero column layout removed - using simpler .hero-text structure */

.hero-tagline {
  font-size: 1.65rem;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.4em;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.3s;
}

/* Mobile tagline - hidden on desktop */
.hero-tagline-mobile {
  display: none;
}

.hero-tagline-mobile .tagline-gold {
  color: var(--btn-primary-bg);
}

.hero-tagline .rotating-words {
  display: inline-block;
  position: relative;
  height: 1.3em;
  min-width: 220px;
  text-align: center;
}

.hero-tagline .rotating-word {
  position: absolute;
  left: 50%;
  bottom: 0;
  white-space: nowrap;
  color: var(--btn-primary-bg);
  opacity: 0;
  transform: translateX(-50%) translateY(20%);
  animation: rotateWords 1s ease-in-out forwards;
  animation-delay: calc(1.5s + var(--i, 0) * 1s);
}

.hero-tagline .rotating-word.final-word {
  animation: rotateWordsFinal 1s ease-in-out forwards;
  animation-delay: calc(1.5s + 5s);
}

.hero-tagline .hero-name {
  color: var(--color-text);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 10s;
}

.hero-subline {
  font-size: 1rem;
  color: var(--color-text);
  max-width: 65ch;
  margin: var(--space-md) auto 0;
  text-align: center;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 7.5s;
}

.hero-signature {
  font-size: 1.4rem;
  color: var(--color-text);
  text-align: center;
  margin-top: var(--space-md);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 8.5s;
}

.static-text {
  color: var(--color-text);
  margin-top: 1rem;
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.45s;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.hero-subtitle {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

/* Simple stacked hero */
.hero-headline-simple {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-line {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line-1 {
  color: var(--color-text);
  animation-delay: 0.1s;
}

.hero-line-2 {
  color: var(--color-text);
  font-style: italic;
  animation-delay: 0.25s;
}

/* Rotating word delays handled via CSS variables */

@keyframes rotateWords {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20%);
  }
  30% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20%);
  }
}

@keyframes rotateWordsFinal {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20%);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.static-text {
  color: var(--color-text);
}

.hero-cta {
  margin-top: var(--space-5);
  display: inline-block;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.3em 0.15em 0;
  margin: 0 -0.3em -0.15em 0;
}

.word {
  display: inline-block;
  transform: translateY(110%);
  animation: wordReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--delay) * 0.125s);
}

@keyframes wordReveal {
  to {
    transform: translateY(0);
  }
}


.hero-image .placeholder {
  width: 350px;
  height: 350px;
  border-radius: 4px;
}

/* === VIDEO CONTAINER === */

.video-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #1a1a2e);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.play-text {
  font-size: 0.875rem;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #c9a227;
  border: 2px solid #c9a227;
  color: #000;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn svg {
  margin-left: 3px;
}

.play-btn:hover {
  background: #d4af37;
  border-color: #d4af37;
  transform: scale(1.1);
}

.play-btn.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.play-btn.centered:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.share-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.share-btn:hover {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: #000;
  transform: scale(1.1);
}

/* === ABOUT === */
.about {
  padding: calc(var(--section-radius) + var(--section-pad-y)) var(--section-pad-x) var(--section-pad-y);
  background: var(--bg-section-1);
  border-radius: var(--section-radius) var(--section-radius) 0 0;
  margin-top: calc(-1 * var(--section-radius));
  position: relative;
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  margin-top: calc(var(--space-4) + 3.5rem);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.about-image img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

.light-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      transparent 20%,
      rgba(255, 255, 255, 0.06) 25%,
      transparent 30%,
      transparent 45%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 55%,
      transparent 70%,
      rgba(255, 255, 255, 0.06) 75%,
      transparent 80%
    );
  background-size: 200% 200%;
  animation: caustics 8s ease-in-out infinite;
  mix-blend-mode: overlay;
}

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

/* Video light leak effect */
.video-light-leak {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      125deg,
      transparent 15%,
      rgba(180, 100, 200, 0.12) 25%,
      transparent 35%,
      transparent 50%,
      rgba(100, 150, 255, 0.1) 60%,
      transparent 70%,
      transparent 80%,
      rgba(200, 120, 180, 0.08) 90%,
      transparent 95%
    );
  background-size: 200% 200%;
  animation: videoLeak 10s ease-in-out infinite;
  mix-blend-mode: screen;
  z-index: 5;
  border-radius: 8px;
}

@keyframes videoLeak {
  0%, 100% {
    background-position: 0% 0%;
    opacity: 0.7;
  }
  50% {
    background-position: 100% 100%;
    opacity: 1;
  }
}

.about-text .section-headline {
  text-align: left;
  margin-bottom: var(--headline-margin-bottom);
  opacity: 1;
  transform: none;
}

.about-text p {
  font-size: var(--step-0);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-text p:last-of-type {
  margin-bottom: 2rem;
}

/* === LATEST PROJECT === */
.latest-project {
  padding: calc(var(--section-radius) + var(--section-pad-y)) var(--section-pad-x) var(--section-pad-y);
  background: var(--bg-section-2);
  border-radius: var(--section-radius) var(--section-radius) 0 0;
  margin-top: calc(-1 * var(--section-radius));
  position: relative;
}

.latest-project .section-headline {
  text-align: center;
  margin-bottom: var(--headline-margin-bottom);
  opacity: 1;
  transform: none;
}

.projects-grid {
  columns: 4;
  column-gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-tile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 4px;
  break-inside: avoid;
  cursor: pointer;
  display: block;
}

.project-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.project-tile:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-tile:hover .tile-overlay {
  opacity: 1;
}

.tile-overlay svg {
  width: 56px;
  height: 56px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* Vertical tiles keep natural aspect */
.tile-vertical {
  /* No special handling needed - masonry handles it */
}

@media (max-width: 900px) {
  .projects-grid {
    columns: 3;
    column-gap: 3px;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    columns: 2;
    column-gap: 2px;
  }

  .latest-project {
    padding: 4rem 1rem;
  }
}

.latest-project .video-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a1a0a, #1a2a1a, #2a1a0a);
}

.project-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 4px;
  border-radius: 2px;
  background: #333;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  width: 24px;
  background: #555;
}

.dot:hover {
  background: #666;
}

/* === VALUE PROPS === */
.value-props {
  padding: calc(var(--section-radius) + var(--section-pad-y)) var(--section-pad-x) var(--section-pad-y);
  background: var(--bg-section-1);
  border-radius: var(--section-radius) var(--section-radius) 0 0;
  margin-top: calc(-1 * var(--section-radius));
  position: relative;
}

.value-props .section-headline,
.value-props .section-subtitle {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-props.in-view .section-headline {
  opacity: 1;
  transform: translateY(0);
}

.value-props.in-view .section-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.value-props .section-subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
}

.cards-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.5rem;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  width: 8px;
  height: 80px;
  background: var(--btn-primary-bg);
  border-radius: 0 6px 6px 0;
  transition: height 0.3s ease;
}

.card:hover::before {
  height: 160px;
}

.card-btn {
  margin-top: auto;
}

.value-props.in-view .card {
  opacity: 1;
  transform: translateY(0);
}

.value-props.in-view .card:nth-child(1) { transition-delay: 0.3s; }
.value-props.in-view .card:nth-child(2) { transition-delay: 0.45s; }
.value-props.in-view .card:nth-child(3) { transition-delay: 0.6s; }

.value-props.in-view .card:hover,
.value-props.in-view .card:not(:hover) {
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  transition-delay: 0s;
}

.value-props.in-view .card:hover {
  transform: scale(1.025) translateY(-4px);
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(201, 162, 39, 0.05);
}

.card-featured {
  border-color: rgba(255, 255, 255, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.15);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--btn-primary-bg);
}

.card-title {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: var(--step-0);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card-text strong {
  color: var(--color-accent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .value-props {
    padding: 4rem 2rem;
  }
}

/* === CLIENTS === */
.clients {
  padding: calc(var(--section-radius) + var(--section-pad-y)) var(--section-pad-x) var(--section-pad-y);
  background: var(--bg-section-2);
  border-radius: var(--section-radius) var(--section-radius) 0 0;
  margin-top: calc(-1 * var(--section-radius));
  position: relative;
  z-index: 1;
}

.clients-grid {
  max-width: 1000px;
  margin: var(--space-xl) auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.client-logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  transform-style: preserve-3d;
  perspective: 500px;
}

.clients.in-view .client-logo {
  opacity: 1;
  transform: translateY(0);
  animation: tilt3d 0.6s ease-in-out forwards;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

.clients.in-view .client-logo:hover {
  background: rgba(255, 255, 255, 0.06);
  animation: tilt3d-hover 0.5s ease-in-out;
}

.client-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.client-logo:hover img {
  opacity: 1;
}

@keyframes tilt3d {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg); }
  25% { transform: rotateX(-16deg) rotateY(-16deg); }
  75% { transform: rotateX(16deg) rotateY(16deg); }
}

@keyframes tilt3d-hover {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg); }
  25% { transform: rotateX(-12deg) rotateY(-12deg); }
  50% { transform: rotateX(12deg) rotateY(12deg); }
  75% { transform: rotateX(-6deg) rotateY(-6deg); }
}

/* === FOOTER === */
.footer {
  padding: calc(var(--section-radius) + var(--space-xl)) var(--section-pad-x) var(--space-lg);
  background: var(--bg-section-2);
  border-radius: var(--section-radius) var(--section-radius) 0 0;
  margin-top: calc(-1 * var(--section-radius));
  position: relative;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social .social-icon {
  width: 36px;
  height: 36px;
}

.footer-link {
  font-size: 0.75rem;
  color: var(--btn-primary-bg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--btn-primary-bg-hover);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;

  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

/* Contact Modal */
.modal-contact {
  width: 320px;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.contact-modal-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.contact-modal-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Video Modal */
.modal-video {
  width: 90%;
  max-width: 900px;
  height: auto;
  background: #000;
}

#video-modal.is-short .modal-video {
  max-width: 360px;
}

.video-modal-content {
  padding: 0;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

#video-modal.is-short .video-embed {
  aspect-ratio: 9 / 16;
  max-height: 80vh;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-video .modal-close {
  z-index: 10;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--color-accent);
  color: #000;
}

.modal-content {
  padding: 2.5rem;
}

.modal-content h2 {
  font-size: var(--step-3);
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.modal-content h3 {
  font-size: var(--step-1);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.modal-content p {
  font-size: var(--step-0);
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-subhead {
  color: var(--color-text-muted) !important;
  margin-bottom: 1.5rem !important;
}

.modal-source {
  margin-top: 2rem !important;
  font-size: var(--step--1) !important;
  color: #666 !important;
}

.modal-source a {
  color: var(--color-accent);
}

.modal-source a:hover {
  text-decoration: underline;
}


/* === RESPONSIVE === */
@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-left {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .hero {
    padding: 5rem 1rem 2rem;
  }

  .about {
    padding: 4rem 2rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    display: flex;
    justify-content: center;
  }

  .about-image img {
    max-width: 250px;
  }

  .about-text .section-headline {
    text-align: center;
  }

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

  .footer-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .demoreel-label {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.25rem;
    letter-spacing: 0.15em;
  }
}

/* === COOKIE BAR === */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-bar.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cookie-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* === COOKIE MODAL === */
.cookie-modal-intro {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cookie-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
}

.cookie-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cookie-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.cookie-label input {
  display: none;
}

.cookie-toggle {
  width: 44px;
  height: 24px;
  background: #333;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s ease;
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #666;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cookie-label input:checked + .cookie-toggle {
  background: var(--color-accent);
}

.cookie-label input:checked + .cookie-toggle::after {
  transform: translateX(20px);
  background: #fff;
}

.cookie-toggle.disabled {
  background: var(--color-accent);
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-toggle.disabled::after {
  transform: translateX(20px);
  background: #fff;
}

.cookie-name {
  font-weight: 500;
  color: var(--color-text);
}

.cookie-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: rgba(201, 162, 39, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.cookie-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .cookie-modal-actions {
    flex-direction: column;
  }

  .cookie-modal-actions .btn {
    width: 100%;
  }
}

/* === MOBILE CONTACT BUTTON === */
.contact-mobile-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .contact-mobile-btn {
    display: flex !important;
    margin: 1.5rem auto 0 auto;
    width: fit-content;
  }
}

/* ============================================
   COMPREHENSIVE MOBILE STYLES
   ============================================ */

@media (max-width: 768px) {
  /* Hide QR on mobile */
  .contact-qr {
    display: none;
  }

  /* Header mobile */
  .header {
    padding: 0.75rem 1rem;
  }

  .logo img {
    height: 32px;
  }

  .header-nav {
    gap: 0.5rem;
  }

  .header-nav .social-icon {
    width: 36px;
    height: 36px;
  }

  .header-nav .btn {
    padding: 0 1rem;
    font-size: 0.7rem;
    min-height: 36px;
  }

  /* Hero mobile */
  .hero {
    padding: calc(60px + 4rem) 1rem calc(2rem + var(--section-radius));
  }

  .hero-title {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
    margin-bottom: 0.75rem;
  }

  .hero-title .hero-accent {
    color: var(--color-accent) !important;
  }

  .hero-title .future-year {
    display: block;
    margin-bottom: -0.1em;
  }

  .hero-title .hero-title-main {
    display: block;
  }

  /* Show full hero on mobile with adjusted sizing */
  .hero-tagline-mobile {
    display: none !important;
  }

  .hero-tagline.hero-tagline-desktop {
    display: flex !important;
    font-size: 1.2rem;
    justify-content: center;
    width: 100%;
  }

  .hero-tagline .rotating-words {
    display: inline-block !important;
    position: relative;
    min-width: 200px;
    height: 1.5em;
  }

  /* Mobile rotating words - hardcoded delays for compatibility */
  .hero-tagline .rotating-word {
    position: absolute;
    left: 50%;
    bottom: 0;
    opacity: 0;
    transform: translateX(-50%) translateY(20%);
    animation: rotateWords 1s ease-in-out forwards;
  }

  .hero-tagline .rotating-word[style*="--i:0"] { animation-delay: 1.5s; }
  .hero-tagline .rotating-word[style*="--i:1"] { animation-delay: 2.5s; }
  .hero-tagline .rotating-word[style*="--i:2"] { animation-delay: 3.5s; }
  .hero-tagline .rotating-word[style*="--i:3"] { animation-delay: 4.5s; }
  .hero-tagline .rotating-word[style*="--i:4"] { animation-delay: 5.5s; }

  .hero-tagline .rotating-word.final-word {
    animation: rotateWordsFinal 1s ease-in-out forwards;
    animation-delay: 6.5s;
  }

  .hero-subline {
    font-size: 0.9rem;
    max-width: 90%;
    line-height: 1.5;
    padding: 0 1rem;
  }

  .hero-signature {
    font-size: 1.4rem;
    margin-top: var(--space-sm);
  }

  .hero-video {
    margin: 1rem auto;
  }

  .play-btn {
    width: 52px;
    height: 52px;
  }

  .share-btn {
    width: 32px;
    height: 32px;
    top: 0.5rem;
    right: 0.5rem;
  }

  .share-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Section headlines */
  .section-headline {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  /* Clients mobile */
  .clients {
    padding: calc(var(--section-radius) + 2rem) 1rem 3rem;
    border-radius: var(--section-radius);
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .client-logo {
    height: 55px;
    padding: 0.4rem;
  }

  /* Value props mobile */
  .value-props {
    padding: calc(var(--section-radius) + 4rem) 1rem 3rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    min-height: auto;
  }

  .card::before {
    top: 16px;
    width: 5px;
    height: 40px;
  }

  .card:hover::before {
    height: 60px;
  }

  .card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.75rem;
  }

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

  .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .card-text {
    font-size: 0.85rem;
    line-height: 1.8;
    white-space: pre-line;
  }

  /* Latest projects mobile */
  .latest-project {
    padding: calc(var(--section-radius) + 2rem) 0.75rem 3rem;
  }

  .latest-project .section-headline {
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
  }

  .projects-grid {
    columns: 2;
    column-gap: 3px;
  }

  .project-tile {
    margin-bottom: 3px;
  }

  .tile-overlay svg {
    width: 32px;
    height: 32px;
  }

  /* About mobile */
  .about {
    padding: calc(var(--section-radius) + 2rem) 1rem 3rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-image {
    margin-top: 0;
    order: -1;
  }

  .about-image img {
    max-width: 140px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-position: center 20%;
  }

  .about-text .section-headline {
    text-align: center;
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
    margin-bottom: 1rem;
  }

  .about-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .about-text p br {
    display: none;
  }

  .about .contact-mobile-btn {
    margin-top: 1rem;
  }

  /* Footer mobile */
  .footer {
    padding: calc(var(--section-radius) + 1.5rem) 1rem 1.5rem;
  }

  .footer-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-social .social-icon {
    width: 32px;
    height: 32px;
  }

  /* Modal mobile */
  .modal {
    width: 92%;
    max-height: 85vh;
    border-radius: 12px;
  }

  .modal-content {
    padding: 1.25rem;
  }

  .modal-content h2 {
    font-size: 1.4rem;
    padding-right: 2.5rem;
  }

  .modal-content h3 {
    font-size: 0.95rem;
    margin-top: 1rem;
  }

  .modal-content p {
    font-size: 0.85rem;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .modal-contact {
    width: 90%;
    height: auto;
    min-height: 340px;
    max-height: 80vh;
  }

  .modal-contact .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    top: 1rem;
    right: 1rem;
  }

  .contact-modal-content {
    padding: 3.5rem 1.5rem 1.5rem;
  }

  .contact-modal-btn {
    min-height: 48px;
    font-size: 0.85rem;
  }

  .contact-modal-buttons {
    gap: 0.6rem;
  }

  /* Cookie bar mobile */
  .cookie-bar {
    padding: 0.75rem 1rem;
  }

  .cookie-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .cookie-content p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .cookie-buttons {
    width: 100%;
    gap: 0.5rem;
  }

  .cookie-buttons .btn {
    flex: 1;
    min-width: 70px;
    padding: 0 0.75rem;
    font-size: 0.7rem;
  }

  /* Cookie modal mobile */
  .cookie-option {
    padding: 0.75rem;
  }

  .cookie-name {
    font-size: 0.9rem;
  }

  .cookie-desc {
    font-size: 0.8rem;
  }

  .cookie-toggle {
    width: 40px;
    height: 22px;
  }

  .cookie-toggle::after {
    width: 16px;
    height: 16px;
  }

  .cookie-label input:checked + .cookie-toggle::after {
    transform: translateX(18px);
  }

  .cookie-toggle.disabled::after {
    transform: translateX(18px);
  }
}

/* Extra small devices (iPhone SE, etc.) */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-tagline-mobile {
    font-size: 0.95rem;
  }

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

  .client-logo {
    height: 50px;
  }

  .header-nav .social-icon {
    display: none;
  }

  .card {
    padding: 1rem 1rem 1rem 1.25rem;
  }

  .about-image img {
    max-width: 120px;
  }
}

/* Mobile keyframe animations for rotating words */
@keyframes rotateWordsMobile {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }
  30% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
  }
}

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

/* === ACCESSIBILITY: Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-tagline,
  .hero-tagline-desktop,
  .hero-tagline-mobile,
  .rotating-word,
  .hero-subline,
  .hero-signature,
  .hero-name {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .rotating-word {
    position: static;
    display: none;
  }

  .rotating-word.final-word {
    display: inline;
  }
}
