/* ============================================================
   JOSE AI SOLUTIONS — DESIGN TOKENS
   Inspired by Luminal Studio design system
   ============================================================ */
:root {
  /* ---- Backgrounds ---- */
  --bg-base:       #050505;
  --bg-surface-1:  #0a0a0a;
  --bg-surface-2:  #111111;
  --bg-surface-3:  #171717;
  --bg-surface-4:  #1a1a1a;
  --bg-card:       #111111;
  --bg-card-hover: #1a1a1a;
  --bg-overlay:    rgba(0, 0, 0, 0.60);

  /* ---- Text ---- */
  --text-primary:  #fafafa;
  --text-secondary:#a3a3a3;
  --text-muted:    #7e7e7e;
  --text-dim:      #636363;

  /* ---- Accents ---- */
  --accent-primary:    #ef4444;
  --accent-warm:       #f97316;
  --accent-glow:       rgba(239, 68, 68, 0.25);
  --accent-blue:       #3b82f6;
  --accent-matrix:     #0f0;
  --accent-whatsapp:   #25d366;

  /* ---- Utilities ---- */
  --white:             #fff;
  --black:             #000;
  --bg-hover-light:    #e5e5e5;
  --bg-very-dark:      #060606;
  --text-whatsapp:     #08140d;

  /* ---- Tag Colors ---- */
  --tag-red-light:     #ffe2e2;
  --tag-orange-light:  #fff1f1;
  --tag-warm-light:    #ffe6d2;
  --tag-warm-bright:   #fff2e8;
  --tag-blue-light:    #d9e9ff;
  --tag-blue-bright:   #eef5ff;
  --accent-primary-hover: #dc2626;

  /* ---- Borders ---- */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong:  rgba(255, 255, 255, 0.15);
  --border-accent:  rgba(239, 68, 68, 0.30);

  /* ---- Typography ---- */
  --font-primary:   'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:   'Space Grotesk', 'Inter', sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  2rem;
  --font-size-4xl:  2.5rem;
  --font-size-5xl:  3.5rem;

  /* ---- Spacing ---- */
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---- Border Radius ---- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(239, 68, 68, 0.15);

  /* ---- Transitions ---- */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --duration:  0.3s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(239, 68, 68, 0.25);
  color: var(--white);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   LAYOUT — CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-padding {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--space-8);
  background: rgba(5, 5, 5, 0.60);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration) var(--ease-out);
}
.site-header.scrolled {
  background: rgba(5, 5, 5, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  transition: opacity var(--duration) var(--ease-out);
}
.brand:hover {
  opacity: 0.8;
}
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand span {
  color: var(--accent-primary);
}

/* Desktop Nav */
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease-out);
  letter-spacing: 0.02em;
  font-weight: 400;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-surface-3);
  color: var(--text-primary);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: var(--text-primary);
  color: var(--bg-base);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  transition: all var(--duration) var(--ease-out);
  margin-left: 8px;
}
.nav-cta:hover {
  background: var(--bg-hover-light);
  transform: translateY(-1px);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 115;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-warm));
  will-change: transform;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-actions .nav-cta {
  margin-left: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}
.lang-toggle:hover {
  background: var(--bg-surface-2);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}
.lang-toggle[aria-pressed="true"] {
  background: var(--bg-surface-3);
  border-color: var(--text-muted);
  color: var(--text-primary);
}
.lang-toggle:focus-visible,
.nav-cta:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease-out);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(24px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--space-8);
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu a {
  font-size: var(--font-size-2xl);
  font-family: var(--font-display);
  color: var(--text-secondary);
  padding: 12px 24px;
  transition: color var(--duration);
  font-weight: 500;
}
.mobile-menu a:hover {
  color: var(--text-primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  transition: all var(--duration) var(--ease-out);
  letter-spacing: 0.01em;
  text-align: center;
  justify-content: center;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
}
.btn-primary:hover {
  background: var(--bg-hover-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--bg-surface-2);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent-primary);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 10px 22px;
  font-size: var(--font-size-xs);
}
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(12, 12, 12, 0.86);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}
.badge-default {
  background: rgba(12, 12, 12, 0.86);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.badge-accent {
  background: rgba(239, 68, 68, 0.12);
  color: var(--tag-red-light);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-4xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title span {
  color: var(--accent-primary);
}
.section-desc {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   1. HERO
   ============================================================ */
/* --- New Hero Grid Background --- */
.hero-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: 1fr;
  pointer-events: none;
  z-index: 0;
  opacity: 0.36;
}
.hero-grid div {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}

.hero-bg-text {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: -0.08em;
  line-height: 0.72;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  padding-left: clamp(24px, 5vw, 96px);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(239, 68, 68, 0.16), transparent 28%),
    radial-gradient(circle at 20% 78%, rgba(249, 115, 22, 0.10), transparent 24%),
    var(--bg-base);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow:
    25vw 18vh 0 rgba(255, 255, 255, 0.95),
    48vw 58vh 0 rgba(249, 115, 22, 0.82),
    82vw 42vh 0 rgba(255, 255, 255, 0.75),
    92vw 80vh 0 rgba(239, 68, 68, 0.9),
    12vw 64vh 0 rgba(255, 255, 255, 0.65);
  z-index: 3;
  pointer-events: none;
  animation: heroParticleDrift 9s ease-in-out infinite alternate;
}

.hero::before {
  left: 8vw;
  top: 22vh;
}

.hero::after {
  right: 9vw;
  bottom: 18vh;
  animation-delay: -3s;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.64) 0%, rgba(5, 5, 5, 0.16) 48%, rgba(5, 5, 5, 0.72) 100%),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(5,5,5,0.44) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  text-align: left;
  margin: 0 auto;
  padding-top: clamp(64px, 9vh, 112px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 9vw, 9.8rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.86;
  margin-bottom: clamp(12px, 1.5vw, 22px);
  text-transform: uppercase;
  color: var(--white);
  max-width: min(1280px, 102vw);
  margin-left: clamp(-8px, -1.2vw, 0px);
  margin-right: 0;
  text-wrap: balance;
  transform: translate3d(var(--hero-title-shift, 0px), 0, 0);
}

.hero h1 .char {
  display: inline-block;
  color: inherit;
}

.hero h1 .hero-title-line {
  display: block;
  color: var(--white);
}

.hero h1 .hero-title-line .char {
  color: var(--white);
}

.hero h1 > span:not(.char) {
  display: block;
  color: #EF4444;
}

.hero h1 > span:not(.hero-title-line):last-child .char {
  color: #EF4444;
}

.hero-label {
  display: inline-block;
  line-height: 1.35;
  padding: 4px 0;
  margin-bottom: 10px;
}

.hero-rotator {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.4vw, 22px);
  min-height: clamp(3.2rem, 7vw, 6.8rem);
  margin: 0 0 clamp(14px, 2vw, 24px);
  color: var(--white);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.7rem, 6.4vw, 6.8rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
  transform: translate3d(var(--hero-word-shift, 0px), 0, 0);
}

.hero-rotator-prefix {
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 4rem);
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.hero-rotator-words {
  position: relative;
  display: inline-grid;
  min-width: min(690px, 66vw);
}

.hero-rotator-words span {
  grid-area: 1 / 1;
  color: var(--accent-primary);
  opacity: 0;
  transform: translate3d(32px, 24px, 0) skewX(-8deg);
  filter: blur(8px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.72s var(--ease-out),
    filter 0.55s var(--ease-out);
  white-space: nowrap;
}

.hero-rotator-words span.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) skewX(0deg);
  filter: blur(0);
}

.hero-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
  margin: 0 0 26px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero .btn-group {
  justify-content: flex-start;
}

/* --- New Hero Video Showcase Grid --- */
.hero-showcase {
  position: absolute;
  top: clamp(100px, calc(22vh - 40px), 140px);
  right: clamp(180px, calc(8vw + 100px), 240px);
  z-index: 8;
  width: min(360px, 26vw);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hero-showcase-item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: var(--bg-surface-3);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.50);
  transition: transform var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.hero-showcase-item.tall {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}

.hero-showcase-item.wide {
  grid-column: span 2;
  aspect-ratio: 21 / 9;
}

.hero-showcase-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hs-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 8px;
  color: var(--white);
  background: var(--accent-primary);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-showcase-item:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(239, 68, 68, 0.52);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.15);
}

/* --- Hero Sidebars --- */
.hero-sidebar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}
.hero-sidebar.left { left: 20px; }
.hero-sidebar.right { right: 20px; }

.hero-sidebar-inner {
  transform: rotate(-90deg);
  white-space: nowrap;
  display: flex;
  gap: 30px;
}
.hero-sidebar a {
  transition: color 0.3s ease;
}
.hero-sidebar a:hover {
  color: var(--accent-primary);
}

@keyframes heroParticleDrift {
  from {
    transform: translate3d(-10px, 8px, 0);
  }
  to {
    transform: translate3d(16px, -14px, 0);
  }
}

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}
.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease;
  background: rgba(239, 68, 68, 0.05);
}

@media (max-width: 768px) {
  .hero-sidebar { display: none; }
  .hero-bg-text { font-size: 42vw; }
  .hero h1 { font-size: 18vw; }
  .hero-rotator {
    font-size: clamp(2rem, 9.2vw, 2.55rem);
    min-height: 2.15em;
    flex-wrap: wrap;
    gap: 8px 14px;
    letter-spacing: -0.04em;
  }
  .hero-rotator-prefix {
    font-size: clamp(1.6rem, 8vw, 2.6rem);
  }
  .hero-rotator-words {
    width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 1500px) {
  .hero-showcase {
    top: clamp(80px, calc(20vh - 40px), 120px);
    right: clamp(140px, calc(4.5vw + 100px), 180px);
    width: clamp(260px, 23vw, 310px);
    gap: 8px;
  }
}

@media (max-width: 1180px) {
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .container {
    padding-left: clamp(24px, 5vw, 48px);
    padding-right: clamp(24px, 5vw, 48px);
  }

  .hero-showcase {
    position: relative;
    top: auto;
    right: auto;
    margin: 40px auto 0 clamp(24px, 5vw, 48px);
    width: min(420px, calc(100vw - clamp(48px, 10vw, 96px)));
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-showcase {
    margin: 32px auto 0;
    width: min(340px, calc(100vw - 48px));
  }
}


/* ============================================================
   2. INTRO STRIP
   ============================================================ */
.intro-strip {
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: clamp(var(--space-12), 5vw, var(--space-20)) 0;
}
.intro-inner {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  position: relative;
}
.intro-accent-line {
  position: absolute;
  top: -18px;
  left: 0;
  width: 84px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-warm));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-inner.visible .intro-accent-line {
  transform: scaleX(1);
}
.intro-text {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
}
.intro-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   3. SERVICES
   ============================================================ */
.services-list {
  margin-top: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-10);
  padding: clamp(var(--space-8), 2vw, var(--space-12)) 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.service-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.service-item-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--text-dim);
  padding-top: 4px;
  transition: color var(--duration) var(--ease-out);
}

.service-item:hover .service-item-number {
  color: var(--accent-primary);
}

.service-item-content h3 {
  font-family: var(--font-display);
  font-size: clamp(var(--font-size-xl), 2.5vw, var(--font-size-2xl));
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.service-item-content p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--space-4);
}

.service-item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-item-list li {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  letter-spacing: 0.02em;
  transition: color var(--duration), border-color var(--duration);
}

.service-item:hover .service-item-list li {
  color: var(--text-secondary);
  border-color: var(--border-default);
}

/* ============================================================
   4. PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-6), 2vw, var(--space-8));
  margin-top: var(--space-16);
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  display: flex;
  flex-direction: column;
  --card-parallax: 0px;
  transform: translate3d(0, var(--card-parallax), 0);
  will-change: transform;
}
.project-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}
.project-card:hover {
  border-color: var(--border-strong);
  transform: translate3d(0, calc(var(--card-parallax) - 4px), 0);
  box-shadow: var(--shadow-lg);
}
.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface-3);
  position: relative;
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.project-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.project-thumb.project-thumb-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(10, 10, 10, 1));
}
.project-thumb.project-thumb-portrait video {
  width: auto;
  height: 100%;
  max-width: min(58%, 240px);
  object-fit: contain;
  object-position: center center;
}
.project-card:hover .project-thumb img {
  transform: scale(1.05);
}
.project-card:hover .project-thumb video {
  transform: scale(1.05);
}
.project-thumb .badge {
  position: absolute;
  top: 14px;
  left: 14px;
}
.project-body {
  padding: clamp(var(--space-4), 2vw, var(--space-8));
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.project-body h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.project-body p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: 500;
  transition: gap var(--duration) var(--ease-out), color var(--duration);
}
.project-cta::after {
  content: '→';
  transition: transform var(--duration) var(--ease-out);
}
.project-card:hover .project-cta {
  color: var(--accent-primary);
}
.project-card:hover .project-cta::after {
  transform: translateX(4px);
}
/* ============================================================
   PROJECT MODAL
   ============================================================ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease-out), visibility 0.28s var(--ease-out);
}
.project-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.project-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1320px, calc(100vw - 24px));
  height: min(680px, calc(100vh - 24px));
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  --modal-fit-scale: 1;
  background: linear-gradient(180deg, rgba(16,16,16,0.98) 0%, rgba(10,10,10,0.98) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translate3d(0, 20px, 0) scale(calc(0.98 * var(--modal-fit-scale)));
  opacity: 0;
  transition: transform 0.32s var(--ease-out), opacity 0.32s var(--ease-out);
  z-index: 1;
}

.project-modal-dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.project-modal.is-open .project-modal-dialog {
  transform: translate3d(0, 0, 0) scale(var(--modal-fit-scale));
  opacity: 1;
}
.project-modal-chrome {
  display: flex;
  justify-content: flex-end;
  padding: 18px 22px 0;
  flex-shrink: 0;
}
.project-modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}
.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
  transform: scale(1.03);
}
.project-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 16px;
  padding: 12px 20px 18px;
  align-items: stretch;
  flex: 1;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.project-modal-body::-webkit-scrollbar {
  display: none;
}
.project-modal-media {
  min-height: 300px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-surface-3);
  border: 1px solid var(--border-subtle);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.project-modal-media img,
.project-modal-media iframe,
.project-modal-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}
.project-modal-media iframe {
  background: var(--black);
}
.project-modal-video-element {
  object-fit: contain;
  background: var(--black);
}
.project-modal-media.is-portrait-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(10, 10, 10, 1));
}
.project-modal-media.is-portrait-media .project-modal-video-element {
  width: auto;
  max-width: min(62%, 360px);
  height: calc(100% - 28px);
  margin: 14px auto;
  border-radius: 18px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}
.project-modal-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}
.project-modal-gallery-item {
  margin: 0;
  min-height: 176px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}
.project-modal-gallery-item-1 {
  grid-row: span 2;
  min-height: 364px;
}
.project-modal-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.project-modal-avatar-card {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 22px;
  background:
    radial-gradient(circle at top, rgba(239, 68, 68, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.98), rgba(10, 10, 10, 0.98));
}
.project-modal-avatar-card img {
  width: min(240px, 60vw);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.project-modal-avatar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-modal-avatar-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.project-modal-avatar-name {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
}
.project-modal-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 4px 0;
  min-width: 0;
}
.project-modal-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.project-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(12, 12, 12, 0.9);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}
.project-modal-focus {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.project-modal-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.project-modal-summary {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.46;
  max-width: 48ch;
}
.project-modal-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.project-modal-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 11px 12px;
}
.project-modal-detail h4 {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
}
.project-modal-detail p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-modal-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  color: var(--text-secondary);
  background: var(--bg-surface-3);
  border: 1px solid var(--border-subtle);
}
.project-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.project-modal-actions .btn {
  min-width: 148px;
}
.project-modal-actions .btn-outline {
  background: transparent;
}
.project-modal-actions--ugc-avatar-video {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-modal-actions--ugc-avatar-video .btn {
  width: 100%;
  min-width: 0;
}
.project-modal-actions--ugc-avatar-video .project-modal-video-action {
  border-width: 1px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-caps: all-small-caps;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.project-modal-actions--ugc-avatar-video .project-modal-video-action-1 {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.1));
  border-color: rgba(239, 68, 68, 0.34);
  color: var(--tag-red-light);
}
.project-modal-actions--ugc-avatar-video .project-modal-video-action-1:hover {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.24), rgba(239, 68, 68, 0.14));
  border-color: rgba(249, 115, 22, 0.34);
  color: var(--tag-orange-light);
}
.project-modal-actions--ugc-avatar-video .project-modal-video-action-2 {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.16), rgba(249, 115, 22, 0.08));
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--tag-warm-light);
}
.project-modal-actions--ugc-avatar-video .project-modal-video-action-2:hover {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0.12));
  border-color: rgba(249, 115, 22, 0.42);
  color: var(--tag-warm-bright);
}
.project-modal-actions--ugc-avatar-video .project-modal-video-action-3 {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.08));
  border-color: rgba(59, 130, 246, 0.28);
  color: var(--tag-blue-light);
}
.project-modal-actions--ugc-avatar-video .project-modal-video-action-3:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.12));
  border-color: rgba(59, 130, 246, 0.42);
  color: var(--tag-blue-bright);
}
.project-modal-actions--ugc-avatar-video .project-modal-contact-action {
  grid-column: 1 / -1;
}

.project-modal-body--showcase {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  grid-template-areas:
    'media copy'
    'rail rail';
  align-items: start;
}

.project-modal-body--showcase > .project-modal-media {
  grid-area: media;
  min-height: 320px;
}

.project-modal-body--app-showcase {
  flex: 0 0 auto;
  gap: 14px;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  grid-template-areas:
    'media copy'
    'current copy'
    'rail rail';
  align-content: start;
}

.project-modal-body--app-showcase > .project-modal-media {
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  align-self: start;
}

.project-modal-body--app-showcase > .project-showcase-current--app {
  grid-area: current;
  align-self: start;
}

.project-modal-body--app-showcase .project-showcase-rail--apps {
  grid-template-columns: repeat(2, minmax(0, 396px));
  justify-content: start;
  gap: 14px;
}

.project-modal-body--app-showcase .project-showcase-current {
  padding: 12px 14px;
}

.project-modal-body--app-showcase .project-showcase-card {
  padding: 10px;
  gap: 8px;
}

.project-modal-body--app-showcase .project-showcase-card-media {
  aspect-ratio: 16 / 8.3;
  border-radius: 10px;
}

.project-modal-body--app-showcase .project-showcase-card-title {
  font-size: 15px;
  line-height: 1.08;
}

.project-modal-body--app-showcase .project-showcase-card-usecase {
  font-size: 12px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.project-modal-body--app-showcase .project-showcase-card-pill {
  font-size: 10px;
}

.project-modal-body--app-showcase .project-showcase-current-label,
.project-modal-body--app-showcase .project-modal-category,
.project-modal-body--app-showcase .project-modal-detail h4 {
  font-size: 11px;
}

.project-modal-body--app-showcase .project-showcase-current strong {
  font-size: 16px;
}

.project-modal-body--app-showcase .project-showcase-current span:last-child,
.project-modal-body--app-showcase .project-modal-detail p,
.project-modal-body--app-showcase .project-modal-tags span {
  font-size: 12px;
}

.project-modal-body--app-showcase .project-modal-tags span {
  line-height: 1.35;
}

.project-modal-body--learning-showcase {
  flex: 1;
  grid-template-areas:
    'rail copy';
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  grid-template-rows: 1fr;
  align-content: start;
  align-items: start;
  padding-top: 0;
}

.project-modal-body--learning-showcase > .project-modal-copy {
  min-height: 0;
  padding-top: 0;
}

.project-modal-body--learning-showcase .project-showcase-rail--apps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  gap: 12px;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 0 4px 0 0;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.project-modal-body--learning-showcase .project-showcase-card {
  padding: 10px;
  gap: 8px;
}

.project-modal-body--learning-showcase .project-showcase-card-media {
  aspect-ratio: 16 / 8.5;
}

.project-modal-body--learning-showcase .project-showcase-card-usecase {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.project-modal-media--placeholder {
  display: flex;
  align-items: stretch;
}

.project-modal-media-placeholder {
  width: 100%;
  min-height: 100%;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(10, 10, 10, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-modal-media-placeholder-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-modal-body--showcase > .project-modal-copy {
  grid-area: copy;
}

.project-modal-body--showcase > .project-showcase-rail {
  grid-area: rail;
}

.project-modal-copy--showcase {
  padding-top: 2px;
}

.project-modal-category {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-showcase-current {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-showcase-current-label {
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-showcase-current strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.project-showcase-current span:last-child {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.project-showcase-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 0 0;
}

.project-showcase-rail--apps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-showcase-card {
  padding: 9px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--text-primary);
  display: grid;
  gap: 8px;
  min-width: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.project-showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.project-showcase-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--bg-card);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.24);
}

.project-showcase-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

.project-showcase-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(10, 10, 10, 1));
  overflow: hidden;
}

.project-showcase-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-showcase-card-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  pointer-events: none;
}

.project-showcase-card-media.is-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(10, 10, 10, 1));
}

.project-showcase-card-media.is-portrait img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: var(--bg-base);
}

.project-showcase-card-media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-showcase-card-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.project-showcase-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.project-showcase-card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.project-showcase-card-usecase {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-showcase-card.is-placeholder {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  cursor: default;
}

.project-showcase-card-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-modal-body--video-gallery {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 6px 20px 18px;
  align-content: start;
}

.project-video-gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 8px 20px;
  align-items: end;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.project-video-gallery-intro .project-modal-kicker,
.project-video-gallery-intro h3,
.project-video-gallery-intro .project-modal-summary {
  grid-column: 1;
}

.project-video-gallery-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.45vw, 2.1rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 13ch;
}

.project-video-gallery-intro .project-modal-summary {
  max-width: 52ch;
  font-size: 0.9rem;
  line-height: 1.42;
}

.project-video-gallery-intro .project-modal-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  justify-self: end;
  margin-top: 0;
}

.project-video-gallery-intro .project-modal-actions .btn {
  min-width: 0;
}

.project-video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 228px));
  justify-content: space-between;
  gap: 10px;
  align-items: stretch;
}

.project-video-gallery-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
}

.project-video-gallery-grid--wide .project-video-gallery-card {
  max-width: none;
}

.project-video-gallery-grid--wide .project-video-gallery-media {
  aspect-ratio: 16 / 8.2;
}

.project-video-gallery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  height: 100%;
  min-width: 0;
  align-content: start;
  transition: transform var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.project-video-gallery-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.project-video-gallery-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

.project-video-gallery-card.is-placeholder {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
}

.project-video-gallery-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(10, 10, 10, 1));
}

.project-video-gallery-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-video-gallery-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  pointer-events: none;
}

.project-video-gallery-media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-video-gallery-media.is-portrait img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: var(--bg-base);
}

.project-video-gallery-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-video-gallery-ratio {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.project-video-gallery-copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 4px;
  align-content: start;
  min-width: 0;
}

.project-video-gallery-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.project-video-gallery-description {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.38;
}

.project-video-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.project-video-gallery-link::after {
  content: '->';
  font-size: 0.8rem;
}

.project-video-gallery-card.is-placeholder .project-video-gallery-link::after {
  content: '';
}

/* ============================================================
   5. PROCESS / HOW IT WORKS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(var(--space-6), 2vw, var(--space-8));
  margin-top: var(--space-16);
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: clamp(var(--space-6), 3vw, var(--space-10)) clamp(var(--space-6), 2vw, var(--space-8));
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: all var(--duration) var(--ease-out);
  counter-increment: step;
}
.process-step:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.step-number {
  font-family: var(--font-display);
  font-size: var(--font-size-4xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 8px;
}
.process-step p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
/* Connector line between steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -13px;
  width: 24px;
  height: 1px;
  background: var(--border-default);
  z-index: 2;
}

/* ============================================================
   6. ABOUT
   ============================================================ */
.about-section {
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.about-inner {
  display: flex;
  gap: clamp(var(--space-12), 5vw, var(--space-20));
  align-items: center;
}
.about-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  border: 2px solid var(--border-subtle);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image-placeholder {
  font-family: var(--font-display);
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--accent-primary);
}
.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-3xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.about-content p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
}

/* ============================================================
   7. FINAL CTA
   ============================================================ */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section .section-title {
  max-width: 700px;
  margin: 0 auto 16px;
}
.cta-section .section-desc {
  margin: 0 auto 40px;
  text-align: center;
}
.cta-section .btn-group {
  justify-content: center;
}
.cta-section .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-10) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-brand {
}
.footer-logo {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  transition: color var(--duration);
}
.footer-links a:hover {
  color: var(--text-primary);
}
.footer-copy {
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  width: 100%;
  text-align: center;
  margin-top: var(--space-6);
}

.whatsapp-sticky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: fit-content;
  max-width: calc(100vw - 48px);
  z-index: 95;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-whatsapp);
  color: var(--text-whatsapp);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), filter var(--duration) var(--ease-out);
}

.whatsapp-sticky::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.whatsapp-sticky:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  filter: brightness(1.02);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.34s; }

.services-list.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.03s; }
.services-list.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.11s; }
.services-list.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.19s; }

.idea-scroll {
  padding: 0 0 var(--space-24);
}

.idea-scroll-shell {
  --idea-progress: 0;
  --idea-text-opacity: 1;
  --idea-text-y: 0px;
  --idea-text-scale: 1;
  --idea-video-scale: 1;
  --idea-video-shift: 0px;
  --idea-video-rotate: 0deg;
  --idea-scrim-opacity: 0.52;
  min-height: 220vh;
  position: relative;
}

.idea-scroll-sticky {
  position: sticky;
  top: calc(72px + var(--space-6));
  min-height: calc(100dvh - 72px - var(--space-10));
  display: flex;
  align-items: center;
}

html.is-auto-scrolling .idea-scroll-sticky {
  position: static;
  top: auto;
  min-height: auto;
}

.idea-scroll-frame {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 72dvh, 820px);
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 38%),
    radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.18), transparent 34%),
    var(--bg-very-dark);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.idea-scroll-frame::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  opacity: calc(0.3 + (var(--idea-progress) * 0.35));
  pointer-events: none;
  z-index: 2;
}

.idea-scroll-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--idea-video-shift), 0) scale(var(--idea-video-scale)) rotate(var(--idea-video-rotate));
  filter: saturate(1.06) contrast(1.04) brightness(0.82);
  will-change: transform;
}

.idea-scroll-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.12) 0%, rgba(5, 5, 5, 0.2) 26%, rgba(5, 5, 5, 0.58) 100%),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.64));
  opacity: var(--idea-scrim-opacity);
  z-index: 1;
}

.idea-scroll-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9) 22%, rgba(0, 0, 0, 0.9) 78%, transparent);
  opacity: calc(0.1 + (var(--idea-progress) * 0.18));
  z-index: 2;
}

.idea-scroll-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(32px, 6vw, 72px);
  text-align: center;
}

.idea-scroll-title {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.55vw, 4.25rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
  color: var(--text-primary);
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  opacity: var(--idea-text-opacity);
  transform: translate3d(0, var(--idea-text-y), 0) scale(var(--idea-text-scale));
  will-change: transform, opacity;
}

.projects-grid.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.04s; }
.projects-grid.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.10s; }
.projects-grid.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.projects-grid.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.22s; }
.projects-grid.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.28s; }
.projects-grid.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.34s; }

.process-grid.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.process-grid.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.13s; }
.process-grid.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.21s; }
.process-grid.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.29s; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .service-item {
    grid-template-columns: 80px 1fr;
    gap: var(--space-6);
  }
  .service-item-number {
    font-size: clamp(2.5rem, 4vw, 4rem);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  .process-step:not(:last-child)::after {
    display: none;
  }
  .intro-inner {
    flex-direction: column;
    text-align: center;
  }
  .about-inner {
    flex-direction: column;
    text-align: center;
  }
  .about-content p {
    max-width: 100%;
  }

  .idea-scroll-shell {
    min-height: 200vh;
  }

  .idea-scroll-sticky {
    top: calc(72px + var(--space-4));
    min-height: calc(100dvh - 72px - var(--space-8));
  }

  .project-modal-body {
    grid-template-columns: 1fr;
  }

  .project-modal-body--showcase {
    grid-template-columns: 1fr;
    grid-template-areas:
      'media'
      'copy'
      'rail';
  }

  .project-modal-body--learning-showcase {
    grid-template-areas:
      'rail'
      'copy';
    grid-template-rows: max-content max-content;
    align-content: start;
    overflow-y: auto;
  }

  .project-showcase-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-modal-body--app-showcase .project-showcase-rail--apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-video-gallery-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-video-gallery-intro .project-modal-actions {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .project-modal-copy {
    padding: 0;
  }

  .project-modal-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .idea-scroll {
    padding-bottom: var(--space-16);
  }

  .idea-scroll-shell {
    min-height: 170vh;
  }

  .idea-scroll-sticky {
    top: calc(60px + var(--space-4));
    min-height: calc(100dvh - 60px - var(--space-6));
  }

  .idea-scroll-frame {
    min-height: min(72dvh, 560px);
    border-radius: 24px;
  }

  .idea-scroll-frame::before {
    inset: 12px;
    border-radius: 18px;
  }

  .idea-scroll-grid {
    background-size: 48px 48px;
  }

  .idea-scroll-copy {
    padding: 24px;
  }

  .idea-scroll-title {
    max-width: 11ch;
    font-size: clamp(1.45rem, 7.15vw, 2.6rem);
  }

  .intro-accent-line {
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center center;
  }

  .intro-inner.visible .intro-accent-line {
    transform: translateX(-50%) scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-video-bg {
    transform: translate3d(-50%, -50%, 0) !important;
    filter: none !important;
  }

  .idea-scroll-shell {
    min-height: auto;
  }

  .idea-scroll-sticky {
    position: static;
    min-height: auto;
  }

  .idea-scroll-title,
  .idea-scroll-video {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-content > * {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .hero-proof-card,
  .hero-proof-card::after {
    animation: none !important;
  }

  .intro-accent-line {
    transform: none !important;
  }

  .scroll-progress-bar {
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .site-header {
    padding: 0 var(--space-4);
  }
  .header-inner {
    height: 60px;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    min-height: 100svh;
    padding-top: 92px;
    padding-bottom: var(--space-8);
  }
  .hero .container {
    width: 100%;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(2.9rem, 15vw, 4.8rem);
    line-height: 0.86;
    letter-spacing: -0.07em;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hero-content .hero-scramble {
    position: static;
    transform: none;
    display: block;
    margin-top: -2px;
    margin-bottom: var(--space-6);
    width: 100%;
    max-width: 100%;
    font-size: clamp(0.98rem, 4.5vw, 1.15rem);
    line-height: 1.35;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.12);
    min-height: 1.4em;
    overflow-wrap: anywhere;
  }
  .hero-subtitle {
    max-width: 100%;
  }
  .hero-glow {
    width: 300px;
    height: 300px;
    top: 5%;
    right: -15%;
  }
  .section-padding {
    padding: var(--space-16) 0;
  }
  .service-item {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-8) 0;
  }
  .service-item-number {
    font-size: 3rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .about-image {
    width: 140px;
    height: 140px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
  .site-footer {
    padding-bottom: calc(var(--space-10) + 88px);
  }
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .whatsapp-sticky {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

  .project-modal {
    padding: 10px;
  }

  .project-modal-dialog {
    border-radius: 22px;
  }

  .project-modal-dialog {
    width: min(1320px, calc(100vw - 12px));
  }

  .project-modal-body {
    padding: 14px 14px 14px;
    gap: 14px;
  }

  .project-modal-body--video-gallery {
    gap: 14px;
    padding: 8px 14px 16px;
  }

  .project-modal-media,
  .project-modal-avatar-card {
    min-height: 220px;
    border-radius: 18px;
  }

  .project-modal-body--showcase > .project-modal-media {
    min-height: 240px;
  }

  .project-thumb.project-thumb-portrait video {
    max-width: min(64%, 220px);
  }

  .project-modal-media.is-portrait-media .project-modal-video-element {
    max-width: min(72%, 320px);
  }

  .project-modal-gallery {
    grid-template-columns: 1fr;
  }

  .project-modal-gallery-item,
  .project-modal-gallery-item-1 {
    min-height: 180px;
    grid-row: auto;
  }

  .project-modal-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .project-showcase-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-modal-body--app-showcase .project-showcase-rail--apps {
    grid-template-columns: 1fr;
  }

  .project-showcase-card {
    gap: 8px;
  }

  .project-video-gallery-intro {
    gap: 10px;
    padding-bottom: 14px;
  }

  .project-video-gallery-intro h3 {
    font-size: clamp(1.55rem, 7.2vw, 2.1rem);
    max-width: none;
  }

  .project-video-gallery-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    justify-content: stretch;
    gap: 10px;
  }

  .project-video-gallery-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-video-gallery-card {
    gap: 8px;
    padding: 9px;
    border-radius: 16px;
  }

  .project-video-gallery-media {
    border-radius: 12px;
  }

  .project-video-gallery-description {
    font-size: 0.75rem;
  }

  .project-video-gallery-link {
    font-size: 0.58rem;
  }

  .project-modal-actions--ugc-avatar-video {
    grid-template-columns: 1fr;
  }

  .project-modal-actions--ugc-avatar-video .project-modal-contact-action {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .project-video-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-video-gallery-grid--wide {
    grid-template-columns: 1fr;
  }

  .whatsapp-sticky {
    bottom: 12px;
    font-size: 0.6875rem;
    padding: 7px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-modal,
  .project-modal-dialog,
  .project-modal-close {
    transition: none !important;
  }
}

/* ============================================================
   VOICE AGENT (Gemini Live)
   ============================================================ */

.voice-agent {
  position: fixed;
  right: 44px;
  bottom: 96px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.voice-agent > * {
  pointer-events: auto;
}

.voice-agent__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.voice-agent__hint {
  position: relative;
  padding: 0.55rem 0.95rem;
  background: rgba(10, 10, 10, 0.94);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 0.65rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.voice-agent__hint::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: rgba(10, 10, 10, 0.94);
  transform: translateY(-50%) rotate(45deg);
}

.voice-agent__hint.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.voice-agent__btn,
.voice-agent__stop {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--accent-primary, #ef4444);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 16px 36px rgba(239, 68, 68, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.voice-agent__btn {
  animation: voiceAgentBreathe 3.2s ease-in-out infinite;
}

.voice-agent__btn:hover {
  background: var(--accent-primary-hover, #dc2626);
  animation-play-state: paused;
  transform: scale(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 22px 44px rgba(239, 68, 68, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

.voice-agent__btn:focus-visible,
.voice-agent__stop:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.voice-agent__btn:disabled {
  cursor: wait;
  opacity: 0.85;
  animation-play-state: paused;
}

.voice-agent__icon {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.voice-agent__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.voice-agent__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-primary, #ef4444);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.voice-agent__halo--ring {
  animation: voiceAgentRing 2.2s ease-out infinite;
}

.voice-agent__halo--burst {
  border-width: 3px;
  animation: voiceAgentBurst 7s ease-out infinite;
}

.voice-agent__spinner {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.voice-agent[data-status="connecting"] .voice-agent__icon {
  opacity: 0;
}

.voice-agent[data-status="connecting"] .voice-agent__spinner {
  opacity: 1;
  animation: voiceAgentSpin 0.9s linear infinite;
}

.voice-agent[data-status="connecting"] .voice-agent__halo,
.voice-agent[data-status="connecting"] .voice-agent__btn,
.voice-agent[data-status="active"] .voice-agent__halo,
.voice-agent[data-status="active"] .voice-agent__btn {
  animation: none;
}

@keyframes voiceAgentBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

@keyframes voiceAgentRing {
  0%   { transform: scale(1);    opacity: 0.55; }
  100% { transform: scale(1.7);  opacity: 0;    }
}

@keyframes voiceAgentBurst {
  0%   { transform: scale(1);   opacity: 0;    }
  6%   { transform: scale(1);   opacity: 0.85; }
  45%  { transform: scale(2.2); opacity: 0;    }
  100% { transform: scale(2.2); opacity: 0;    }
}

@keyframes voiceAgentSpin {
  to { transform: rotate(360deg); }
}

.voice-agent__stop {
  flex-direction: column;
  gap: 0.25rem;
}

.voice-agent__stop {
  background: #10b981;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 0 rgba(16, 185, 129, 0.55),
    0 16px 36px rgba(16, 185, 129, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.3);
  animation: voiceAgentActiveGlow 2.4s ease-in-out infinite;
}

.voice-agent__stop:hover {
  background: #059669;
  transform: scale(1.04);
  animation-play-state: paused;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 0 6px rgba(16, 185, 129, 0.22),
    0 22px 44px rgba(16, 185, 129, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

@keyframes voiceAgentActiveGlow {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.22),
      0 0 0 0 rgba(16, 185, 129, 0.55),
      0 16px 36px rgba(16, 185, 129, 0.45),
      0 4px 14px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.28),
      0 0 0 10px rgba(16, 185, 129, 0.12),
      0 18px 40px rgba(16, 185, 129, 0.55),
      0 6px 18px rgba(0, 0, 0, 0.32);
  }
}

.voice-agent__pulse {
  position: relative;
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: #ffffff;
}

.voice-agent__pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.7;
  animation: voiceAgentPulse 1.4s ease-out infinite;
}

@keyframes voiceAgentPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.3); opacity: 0;   }
}

.voice-agent__close-icon {
  margin-left: 0;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.95;
  font-weight: 700;
}

.voice-agent__transcript {
  max-width: min(22rem, calc(100vw - 4.5rem));
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(10, 10, 10, 0.92);
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.voice-agent__error {
  max-width: min(22rem, calc(100vw - 4.5rem));
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(239, 68, 68, 0.92);
  color: #ffffff;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

@media (max-width: 640px) {
  .voice-agent {
    right: max(20px, env(safe-area-inset-right, 0px) + 16px);
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .voice-agent__btn,
  .voice-agent__stop {
    width: 64px;
    height: 64px;
  }
  .voice-agent__icon {
    width: 28px;
    height: 28px;
  }
  .voice-agent__hint {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
    white-space: normal;
    max-width: calc(100vw - 8rem);
  }
  .voice-agent__transcript {
    font-size: 0.82rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Brief flash on the section the voice agent navigated to */
.voice-nav-highlight {
  animation: voiceNavFlash 2.4s ease-out both;
}

@keyframes voiceNavFlash {
  0%, 20% { background-color: rgba(239, 68, 68, 0.08); }
  100%    { background-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .voice-nav-highlight {
    animation: none;
  }
}

/* ============================================================
   LEAD FORM MODAL
   ============================================================ */

.lead-form {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.lead-form.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lead-form__dialog {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--bg-surface-2, #111111);
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(8px);
  transition: transform 0.18s ease;
}

.lead-form.is-open .lead-form__dialog {
  transform: translateY(0);
}

.lead-form__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #a3a3a3;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lead-form__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lead-form__title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.lead-form__subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: #a3a3a3;
}

.lead-form__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lead-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #d4d4d4;
}

.lead-form__required {
  color: var(--accent-primary, #ef4444);
}

.lead-form__field input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lead-form__field input:focus {
  border-color: var(--accent-primary, #ef4444);
  background: rgba(239, 68, 68, 0.05);
}

.lead-form__status {
  min-height: 1.25rem;
  font-size: 0.82rem;
}

.lead-form__status[data-kind="pending"] { color: #fbbf24; }
.lead-form__status[data-kind="error"]   { color: #f87171; }
.lead-form__status[data-kind="success"] { color: #34d399; }

.lead-form__submit {
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 0;
  background: var(--accent-primary, #ef4444);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.lead-form__submit:hover {
  background: var(--accent-primary-hover, #dc2626);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .voice-agent__pulse::before,
  .voice-agent__halo,
  .voice-agent__halo--ring,
  .voice-agent__halo--burst,
  .voice-agent__spinner,
  .voice-agent__hint,
  .lead-form,
  .lead-form__dialog,
  .voice-agent__btn,
  .voice-agent__stop {
    animation: none !important;
    transition: none !important;
  }
  .voice-agent__halo {
    opacity: 0 !important;
  }
}

.lead-form__honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   GDPR — voice consent modal + lead-form consent row
   ========================================================= */

.voice-consent {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}
.voice-consent[hidden] { display: none; }

.voice-consent__panel {
  max-width: 480px;
  width: 100%;
  background: #0f1115;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  color: #e6e8ee;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.voice-consent__panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.voice-consent__panel p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #b8bcc6;
}

.voice-consent__panel a {
  color: #10b981;
  text-decoration: underline;
}

.voice-consent__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.voice-consent__actions button {
  font: inherit;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #e6e8ee;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.voice-consent__actions button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.voice-consent__actions button:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.voice-consent__actions button[data-voice-consent-accept] {
  background: #10b981;
  border-color: #10b981;
  color: #06281f;
  font-weight: 600;
}

.voice-consent__actions button[data-voice-consent-accept]:hover {
  background: #34d399;
  border-color: #34d399;
}

/* Lead form consent checkbox */
.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.25rem 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #b8bcc6;
}

.lead-form__consent input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #10b981;
  flex-shrink: 0;
}

.lead-form__consent input[type="checkbox"]:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.lead-form__consent a {
  color: #10b981;
  text-decoration: underline;
}

/* Privacy policy page */
.privacy-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: #e6e8ee;
  line-height: 1.65;
}
.privacy-page h1 { font-size: 2rem; margin: 0 0 0.5rem; color: #fff; }
.privacy-page h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; color: #fff; }
.privacy-page p, .privacy-page ul { margin: 0 0 1rem; color: #b8bcc6; }
.privacy-page ul { padding-left: 1.25rem; }
.privacy-page a { color: #10b981; text-decoration: underline; }
.privacy-page__meta { font-size: 0.85rem; color: #6b7280; margin-top: 2rem; }
.privacy-page__revoke {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #e6e8ee;
  cursor: pointer;
  font: inherit;
}
.privacy-page__revoke:hover { background: rgba(255, 255, 255, 0.05); }

.privacy-page__revoke:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.privacy-page__back {
  display: inline-block;
  margin-top: 2rem;
  color: #10b981;
}
