/* ==========================================================================
   PIPITWORKS — KINETIC TYPOGRAPHY & EDITORIAL MOTION
   Design Foundation: #171717 | #F6F5EF | #8EAAA5 | #5E6665 | #46615D | #FFFFFF
   Quiet Luxury • Art-Directed Motion • Interactive Storytelling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Exact Brand Palette */
  --c-charcoal: #171717;      /* Primary Typography / Dark Mode */
  --c-offwhite: #F6F5EF;      /* Primary Warm Canvas */
  --c-sage: #8EAAA5;          /* Muted Sage Accent */
  --c-slate: #5E6665;         /* Secondary Editorial / Metadata */
  --c-deep-sage: #46615D;     /* Dark Sage CTA / Focused States */
  --c-white: #FFFFFF;         /* Surfaces / High Contrast */

  /* Reusable Semantic Text Hierarchy Tokens (Section 6) */
  --text-primary-light: var(--c-charcoal);        /* #171717: 16.4:1 contrast on cream */
  --text-secondary-light: var(--c-slate);         /* #5E6665: 5.4:1 contrast on cream */
  --text-accent-light: var(--c-deep-sage);        /* #46615D: 6.15:1 contrast on cream */
  --text-eyebrow-light: var(--c-deep-sage);       /* #46615D: 6.15:1 contrast on cream */
  --text-muted-light: var(--c-slate);             /* #5E6665: 5.4:1 contrast on cream */

  --text-primary-dark: var(--c-white);            /* #FFFFFF: 17.9:1 contrast on charcoal */
  --text-secondary-dark: var(--c-offwhite);       /* #F6F5EF: 16.4:1 contrast on charcoal */
  --text-secondary-dark-muted: rgba(246, 245, 239, 0.88); /* 14.5:1 contrast on charcoal */
  --text-accent-dark: var(--c-sage);              /* #8EAAA5: 7.21:1 contrast on charcoal */
  --text-eyebrow-dark: var(--c-sage);             /* #8EAAA5: 7.21:1 contrast on charcoal */
  --text-muted-dark: #A8B2B0;                     /* 8.5:1 contrast on charcoal */

  /* Alpha Tints */
  --c-border: rgba(23, 23, 23, 0.12);
  --c-border-subtle: rgba(23, 23, 23, 0.06);
  --c-sage-tint: rgba(142, 170, 165, 0.16);
  --c-charcoal-tint: rgba(23, 23, 23, 0.05);

  /* Dynamic Theme Variables (Allows seamless dark mode transition for Portfolio) */
  --theme-bg: var(--c-offwhite);
  --theme-text: var(--c-charcoal);
  --theme-border: var(--c-border);
  --theme-card-bg: var(--c-white);
  --theme-subtext: var(--c-slate);

  /* Typography */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --max-width: 1360px;
  --nav-height: 72px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 180ms var(--ease-cinematic);
  --transition-normal: 320ms var(--ease-cinematic);
  --transition-theme: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--c-offwhite);
  color: var(--c-charcoal);
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

/* Lenis smooth momentum scroll support */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  background-color: #F8F6F0;
  color: var(--theme-text);
  min-height: 100vh;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: clip;
  transition: background-color var(--transition-theme), color var(--transition-theme);
}

main, #main-content, footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   AMBIENT LIVING MESH (BOUTIQUE EDITORIAL ATMOSPHERE)
   Hardware-accelerated composited background layer (0 repaints during scroll)
   -------------------------------------------------------------------------- */
.ambient-mesh-canvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.96;
  contain: strict;
  background-color: #F8F6F0;
  background-image: 
    /* Radiant Hero & Reading Spotlight */
    radial-gradient(1300px 750px at 50% 18%, #FFFFFF 0%, rgba(255, 255, 255, 0.94) 30%, rgba(250, 248, 242, 0.65) 55%, transparent 80%),
    /* Warm Solar Dawn Glow (Upper Left) */
    radial-gradient(900px circle at 8% 10%, rgba(254, 235, 218, 0.60) 0%, rgba(250, 228, 208, 0.25) 50%, transparent 70%),
    /* Refined Mineral Sage (Upper Right / Studio Accent) */
    radial-gradient(950px circle at 90% 14%, rgba(142, 170, 165, 0.32) 0%, rgba(167, 197, 191, 0.14) 50%, transparent 68%),
    /* Tactile Cashmere Taupe (Lower Left Depth) */
    radial-gradient(1100px circle at 12% 78%, rgba(234, 222, 206, 0.50) 0%, rgba(224, 212, 196, 0.20) 50%, transparent 68%),
    /* Ethereal Mineral Celadon (Lower Right Counterbalance) */
    radial-gradient(1000px circle at 88% 82%, rgba(142, 175, 170, 0.28) 0%, rgba(175, 204, 199, 0.12) 50%, transparent 65%),
    /* Seamless Editorial Base Foundation */
    linear-gradient(172deg, #FBF9F5 0%, #F6F3EC 45%, #EBE5D8 100%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: translateZ(0);
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  will-change: transform;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Solar Dawn - Warm champagne / delicate morning light */
.orb-solar-glow {
  width: clamp(480px, 52vw, 780px);
  height: clamp(480px, 52vw, 780px);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(254, 230, 204, 0.72) 0%, rgba(250, 220, 190, 0.35) 50%, transparent 75%);
  animation: meshDrift1 30s ease-in-out infinite alternate;
}

/* Mineral Sage - Pipitworks signature cool mineral tint */
.orb-mineral-sage {
  width: clamp(450px, 50vw, 750px);
  height: clamp(450px, 50vw, 750px);
  top: 2%;
  right: -10%;
  background: radial-gradient(circle, rgba(142, 170, 165, 0.46) 0%, rgba(167, 197, 191, 0.22) 55%, transparent 75%);
  animation: meshDrift2 35s ease-in-out infinite alternate;
}

/* Cashmere Taupe - Deep architectural grounding */
.orb-champagne-warmth {
  width: clamp(520px, 58vw, 880px);
  height: clamp(520px, 58vw, 880px);
  bottom: -15%;
  left: 6%;
  background: radial-gradient(circle, rgba(235, 222, 207, 0.58) 0%, rgba(222, 210, 195, 0.26) 55%, transparent 75%);
  animation: meshDrift3 42s ease-in-out infinite alternate;
}

/* Celadon Mist - Subtle atmospheric air */
.orb-celadon-mist {
  width: clamp(440px, 46vw, 700px);
  height: clamp(440px, 46vw, 700px);
  bottom: 5%;
  right: -6%;
  background: radial-gradient(circle, rgba(142, 175, 170, 0.40) 0%, rgba(182, 208, 203, 0.18) 55%, transparent 75%);
  animation: meshDrift4 38s ease-in-out infinite alternate;
}

@keyframes meshDrift1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 5vh, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, 8vh, 0) scale(0.95); }
}

@keyframes meshDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-8vw, 7vh, 0) scale(1.10); }
  100% { transform: translate3d(4vw, -3vh, 0) scale(0.92); }
}

@keyframes meshDrift3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(5vw, -6vh, 0) scale(1.05); }
  100% { transform: translate3d(-6vw, 4vh, 0) scale(0.96); }
}

@keyframes meshDrift4 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-5vw, -8vh, 0) scale(1.08); }
  100% { transform: translate3d(7vw, 4vh, 0) scale(0.93); }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-orb {
    animation: none !important;
  }
}

::selection {
  background-color: var(--c-sage);
  color: var(--c-charcoal);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100000;
  background: var(--c-charcoal);
  color: var(--c-white);
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--c-sage);
}

:focus-visible {
  outline: 2px solid var(--c-deep-sage);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: inherit;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

p {
  color: var(--theme-subtext);
  max-width: 65ch;
  transition: color var(--transition-theme);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}

.section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-top: clamp(80px, 11vw, 150px);
  padding-bottom: clamp(80px, 11vw, 150px);
  position: relative;
}

/* Subtle Section Number (01 / INTRO, 02 / SERVICES...) */
.section-index-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-eyebrow-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.section-index-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-deep-sage);
}

.site-cinema-footer .section-index-tag,
.social-discovery-section .section-index-tag {
  color: var(--text-eyebrow-dark) !important;
}

.site-cinema-footer .section-index-tag::before,
.social-discovery-section .section-index-tag::before {
  background-color: var(--c-sage);
}

/* --------------------------------------------------------------------------
   3. OPENING SEQUENCE (< 1 SECOND)
   -------------------------------------------------------------------------- */
#studio-opening-seq {
  position: fixed;
  inset: 0;
  background-color: var(--c-charcoal);
  color: var(--c-offwhite);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform 600ms cubic-bezier(0.77, 0, 0.175, 1), opacity 450ms ease;
  will-change: transform, opacity;
}

#studio-opening-seq.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.opening-wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-offwhite);
  overflow: hidden;
}

.opening-subtext {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-sage);
}

/* --------------------------------------------------------------------------
   4. SYSTEM CURSOR (DEFAULT)
   -------------------------------------------------------------------------- */
/* Normal system cursor used throughout */

/* --------------------------------------------------------------------------
   5. MINIMALIST FLOATING NAVIGATION
   -------------------------------------------------------------------------- */
.studio-nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

.nav-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 40px);
}

.nav-pill-container {
  position: relative;
  z-index: 1001;
  display: grid;
  grid-template-columns: minmax(auto, 1fr) auto minmax(auto, 1fr);
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 18px;
  pointer-events: auto;
  box-shadow: 0 4px 24px -2px rgba(23, 23, 23, 0.05), 0 1px 3px rgba(23, 23, 23, 0.03);
  transition: all var(--transition-normal);
}

.studio-nav.scrolled .nav-pill-container {
  background: rgba(246, 245, 239, 0.96);
  border-color: rgba(23, 23, 23, 0.14);
  box-shadow: 0 10px 30px rgba(23, 23, 23, 0.08);
}

body.theme-dark .nav-pill-container {
  background: rgba(23, 23, 23, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.theme-dark .studio-nav.scrolled .nav-pill-container {
  background: rgba(20, 20, 20, 0.95);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.nav-left-group {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--theme-text);
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.brand-mark:hover {
  opacity: 0.85;
}

.brand-logo-img {
  height: 38px !important;
  max-height: 40px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--theme-text);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-eyebrow-light);
}

body.theme-dark .brand-sub {
  color: var(--text-accent-dark);
}

/* Studio Capacity / Status Pill */
.nav-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(142, 170, 165, 0.14);
  border: 1px solid rgba(142, 170, 165, 0.28);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--theme-text);
  white-space: nowrap;
}

body.theme-dark .nav-status-badge {
  background: rgba(142, 170, 165, 0.12);
  border-color: rgba(142, 170, 165, 0.3);
  color: var(--c-white);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: navPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  display: inline-block;
}

@keyframes navPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.nav-desktop-menu {
  justify-self: center;
  display: flex;
  align-items: center;
}

.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  background: rgba(23, 23, 23, 0.04);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(23, 23, 23, 0.06);
  margin: 0;
}

body.theme-dark .nav-links-menu {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--theme-text);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link-index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--c-sage);
  font-weight: 700;
}

.nav-link-item:hover {
  background: var(--c-white);
  color: var(--c-charcoal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body.theme-dark .nav-link-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--c-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Tactile Primary Button */
.btn-tactile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--c-charcoal);
  color: var(--c-white);
  border: 1px solid var(--c-charcoal);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
  will-change: transform;
}

body.theme-dark .btn-tactile {
  background-color: var(--c-offwhite);
  color: var(--c-charcoal);
  border-color: var(--c-offwhite);
}

.btn-tactile:hover {
  background-color: var(--c-deep-sage);
  border-color: var(--c-deep-sage);
  color: var(--c-white);
  transform: translateY(-2px);
}

.btn-arrow-icon {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn-tactile:hover .btn-arrow-icon {
  transform: translateX(4px);
}

.btn-whatsapp-cta {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--c-white) !important;
  border: 1px solid rgba(37, 211, 102, 0.45) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-whatsapp-cta:hover {
  background: rgba(37, 211, 102, 0.14) !important;
  border-color: #25D366 !important;
  color: var(--c-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.28);
}

/* Nav Actions Group (WhatsApp Icon + Start Project CTA) */
.nav-actions-group {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: var(--theme-text);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.nav-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: #25D366;
  color: #0e6b30;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.22);
}

body.theme-dark .nav-whatsapp-btn {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.4);
  color: var(--c-offwhite);
}

body.theme-dark .nav-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: #25D366;
  color: #25D366;
}

.nav-wa-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

.nav-wa-text {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-block;
  line-height: 1;
}

.nav-desktop-cta {
  padding: 9px 18px !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.05em;
  white-space: nowrap;
  gap: 8px !important;
  flex-shrink: 0;
}

/* Mobile Navigation Toggle Button */
.nav-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--c-charcoal);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  z-index: 1002;
  flex-shrink: 0;
}

body.theme-dark .nav-mobile-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--c-offwhite);
}

.nav-mobile-toggle:hover {
  border-color: var(--c-deep-sage);
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 240ms ease, opacity 240ms ease;
}

/* Animated Hamburger to X */
.nav-mobile-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-mobile-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.nav-mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(246, 245, 239, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-height) + 32px) clamp(20px, 6vw, 36px) 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 280ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 280ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.theme-dark .nav-mobile-drawer {
  background: rgba(23, 23, 23, 0.98);
}

.nav-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  gap: 28px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.nav-mobile-header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(142, 170, 165, 0.15);
  border: 1px solid rgba(142, 170, 165, 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--theme-text);
  width: fit-content;
}

.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.5vw, 2.3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--theme-text);
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  min-height: 48px;
  transition: color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

body.theme-dark .nav-mobile-link {
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-mobile-link:hover,
.nav-mobile-link:focus-visible {
  color: var(--c-deep-sage);
  transform: translateX(6px);
}

.mobile-link-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-deep-sage);
  letter-spacing: 0.08em;
}

.nav-mobile-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.nav-mobile-cta-btn {
  width: 100%;
  min-height: 48px;
  font-size: 0.9rem;
  justify-content: center;
}

.nav-mobile-wa-btn {
  width: 100%;
  min-height: 48px;
  background: rgba(37, 211, 102, 0.10) !important;
  color: #0E6B30 !important;
  border: 1px solid rgba(37, 211, 102, 0.35) !important;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition-fast);
}

body.theme-dark .nav-mobile-wa-btn {
  background: rgba(37, 211, 102, 0.16) !important;
  color: #25D366 !important;
  border-color: rgba(37, 211, 102, 0.45) !important;
}

.nav-mobile-wa-btn:hover {
  background: rgba(37, 211, 102, 0.25) !important;
  border-color: #25D366 !important;
  transform: translateY(-2px);
}

.nav-mobile-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--c-slate);
  padding-top: 4px;
}

body.nav-menu-open {
  overflow: hidden !important;
  touch-action: none;
}

.nav-mobile-meta a {
  color: var(--c-slate);
  transition: color var(--transition-fast);
}

.nav-mobile-meta a:hover {
  color: var(--c-deep-sage);
}

/* Contact form grid */
.footer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

   7. HERO KINETIC TYPOGRAPHY
   -------------------------------------------------------------------------- */
.hero-kinetic-section {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.hero-kinetic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Kinetic Words Container */
.hero-headline-kinetic {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 6.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--c-charcoal);
  user-select: none;
  display: flex;
  flex-direction: column;
}

/* Individual Lines & Initial Load Personality */
.hero-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  width: fit-content;
  transition: transform 160ms ease-out;
  will-change: transform;
}

/* Initial Load Choreography */
.hero-line-prefix,
.hero-line-we {
  animation: heroEnterLeft 900ms var(--ease-cinematic) both;
}

.hero-line-morph {
  animation: heroEnterRight 900ms 120ms var(--ease-cinematic) both;
}

.hero-line-digital {
  animation: heroEnterUp 900ms 240ms var(--ease-cinematic) both;
}

.hero-line-work {
  animation: heroEnterScale 900ms 360ms var(--ease-cinematic) both;
}

@keyframes heroEnterLeft {
  from { transform: translateX(-60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes heroEnterRight {
  from { transform: translateX(60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

@keyframes heroEnterScale {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Word Carousel / Masked Text Transformation */
.word-carousel-mask {
  display: inline-block;
  overflow: hidden;
  height: 1.15em;
  position: relative;
  vertical-align: bottom;
  color: var(--c-deep-sage);
  white-space: nowrap;
}

.word-carousel-track {
  display: flex;
  flex-direction: column;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.word-carousel-item {
  height: 1.15em;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: transform 300ms ease, opacity 300ms ease;
}

/* Hover Mono Tooltips for Hero Words */
.hero-word-hover-label {
  position: absolute;
  left: 104%;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: var(--c-charcoal);
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.hero-line:hover .hero-word-hover-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Subtitle & Actions */
.hero-lead-text {
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--c-slate);
  max-width: 48ch;
}

.hero-actions-group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
}

/* Hero Right: Stable 2D Digital System Diagram */
.hero-system-diagram {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 380px;
  margin: 0 auto;
}

/* Symmetrical Fixed SVG Connection Canvas */
.sys-svg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  animation: nodeEnterLines 600ms 150ms var(--ease-cinematic) both;
}

.sys-line-base {
  stroke: var(--c-border);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  transition: stroke 260ms ease, stroke-width 260ms ease, opacity 260ms ease;
}

.sys-line-base.highlighted {
  stroke: var(--c-deep-sage);
  stroke-width: 2.2;
  opacity: 1;
}

/* Subtle Animated Sage Data Segments Travelling Outward */
.sys-line-pulse {
  stroke: var(--c-sage);
  stroke-width: 2.5;
  stroke-dasharray: 12 160;
  animation: sysPulseFlow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.sys-pulse-apps {
  animation-delay: 1.35s;
}

.sys-pulse-automation {
  animation-delay: 2.7s;
}

@keyframes sysPulseFlow {
  0% { stroke-dashoffset: 172; }
  100% { stroke-dashoffset: 0; }
}

@keyframes nodeEnterLines {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Central Stable PIPITWORKS Node */
.sys-central-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background-color: var(--c-charcoal);
  border: 2px solid var(--c-deep-sage);
  color: var(--c-offwhite);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.08);
  user-select: none;
  cursor: default;
  animation: nodeEnterCore 650ms 0ms var(--ease-cinematic) both, centralBreathe 7s 650ms ease-in-out infinite;
  transition: transform 260ms var(--ease-cinematic), border-color 240ms ease, box-shadow 260ms ease;
}

.sys-central-node:hover,
.sys-central-node:focus-visible {
  transform: translate(-50%, -50%) scale(1.03);
  border-color: var(--c-sage);
  box-shadow: 0 14px 32px rgba(23, 23, 23, 0.12);
}

.sys-core-brand {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-offwhite);
}

.sys-core-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--c-sage);
  letter-spacing: 0.12em;
  margin-top: 3px;
}

@keyframes centralBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.015); }
}

@keyframes nodeEnterCore {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Three Connected 2D Clean White Cards */
.sys-card {
  position: absolute;
  z-index: 6;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.05);
  text-decoration: none;
  color: var(--c-charcoal);
  display: inline-block;
  white-space: nowrap;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  will-change: transform;
}

.sys-card:hover {
  border-color: var(--c-sage);
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.09);
}

.sys-card:focus-visible {
  outline: 2px solid var(--c-deep-sage);
  outline-offset: 3px;
}

.sys-card-websites {
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  animation: nodeEnterWeb 650ms 300ms var(--ease-cinematic) both;
}

.sys-card-websites:hover,
.sys-card-websites:focus-visible {
  transform: translateX(-50%) translateY(-3px);
}

.sys-card-apps {
  bottom: 16px;
  left: 12px;
  animation: nodeEnterApps 650ms 450ms var(--ease-cinematic) both;
}

.sys-card-apps:hover,
.sys-card-apps:focus-visible {
  transform: translateY(-3px);
}

.sys-card-automation {
  bottom: 16px;
  right: 12px;
  animation: nodeEnterAuto 650ms 600ms var(--ease-cinematic) both;
}

.sys-card-automation:hover,
.sys-card-automation:focus-visible {
  transform: translateY(-3px);
}

@keyframes nodeEnterWeb {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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

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

.sys-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sys-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--c-sage);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.sys-card:hover .sys-indicator-dot,
.sys-card:focus-visible .sys-indicator-dot {
  background-color: var(--c-deep-sage);
  transform: scale(1.2);
}

.sys-card-title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-charcoal);
}

.sys-card-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--c-slate);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   8. HORIZONTAL TEXT MARQUEE WITH SCROLL VELOCITY
   -------------------------------------------------------------------------- */
.marquee-ticker-strip {
  width: 100%;
  max-width: 100%;
  background-color: var(--c-charcoal);
  color: var(--c-offwhite);
  padding: 22px 0;
  overflow: hidden;
  user-select: none;
  position: relative;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.marquee-ticker-inner {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.marquee-content-block {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.marquee-separator {
  color: var(--c-sage);
}

/* --------------------------------------------------------------------------
   9. PROBLEM SECTION — QUICK RECOGNITION
   -------------------------------------------------------------------------- */
.problem-section {
  border-top: 1px solid var(--theme-border);
  padding: clamp(52px, 7vw, 76px) 0 clamp(36px, 5vw, 48px);
  background-color: transparent;
}

.problem-hook-wrap {
  max-width: 920px;
}

.problem-statement-h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-charcoal);
  text-transform: uppercase;
}

.problem-statement-sub {
  margin-top: 14px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--c-slate);
  max-width: 62ch;
  line-height: 1.55;
}

.problem-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(28px, 4vw, 40px);
}

.problem-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.problem-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-sage);
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.04);
}

.problem-card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-deep-sage);
}

.problem-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 800;
  color: var(--c-charcoal);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}

.problem-card-desc {
  font-size: 0.875rem;
  color: var(--c-slate);
  line-height: 1.5;
  margin: 0;
}

.problem-transition-bridge {
  display: flex;
  align-items: center;
  margin-top: clamp(28px, 4vw, 38px);
  padding-top: clamp(16px, 2.5vw, 22px);
  border-top: 1px solid var(--theme-border);
}

.bridge-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-deep-sage);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   10. SERVICES SECTION — THREE EDITORIAL VERTICAL CARDS
   -------------------------------------------------------------------------- */
.services-section-v3 {
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
  padding: clamp(60px, 8vw, 100px) 0;
  background: transparent;
  position: relative;
  scroll-margin-top: 80px;
}

.services-v3-header {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.services-v3-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-deep-sage);
  margin-bottom: 12px;
}

.services-editorial-h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--theme-text);
  line-height: 1.08;
  margin-bottom: 14px;
  text-transform: none;
}

.services-manifesto-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--theme-subtext);
  line-height: 1.55;
  max-width: 68ch;
  margin: 0;
  font-weight: 500;
}

/* 3-Column Grid Layout */
.services-v3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
  align-items: stretch;
}

/* Service Card Base */
.service-v3-card {
  background: #FFFFFF;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  padding: clamp(20px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 280ms ease,
              box-shadow 280ms ease;
  overflow: hidden;
}

.service-v3-card:hover {
  transform: translateY(-5px);
  border-color: var(--c-deep-sage);
  box-shadow: 0 16px 36px rgba(23, 23, 23, 0.07);
}

.service-v3-card.is-highlighted {
  border-color: var(--c-deep-sage);
  box-shadow: 0 0 0 3px rgba(70, 97, 93, 0.25), 0 16px 36px rgba(23, 23, 23, 0.08);
  transform: translateY(-4px);
}

/* 1. Meta / Index Header */
.service-v3-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.service-v3-num {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-deep-sage);
}

.service-v3-category {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-accent-light);
}

/* 2. Visual Preview Area */
.service-v3-preview {
  height: 220px;
  border: 1px solid var(--theme-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background: var(--c-offwhite);
  transition: border-color var(--transition-fast);
}

.service-v3-card:hover .service-v3-preview {
  border-color: rgba(70, 97, 93, 0.35);
}

/* Preview 1: Browser Window (Websites) */
.proto-browser-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FFFFFF;
}

.proto-browser-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #EFECE6;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.proto-browser-dots {
  display: flex;
  gap: 5px;
}

.proto-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #E06C75; }
.dot-yellow { background: #E5C07B; }
.dot-green { background: #98C379; }

.proto-browser-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--c-slate);
}

.proto-browser-lock {
  font-size: 0.55rem;
  opacity: 0.6;
}

.proto-browser-url {
  letter-spacing: 0.02em;
}

.proto-browser-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #F8F7F2;
}

.mini-site-canvas {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 420ms var(--ease-cinematic);
}

.service-v3-card:hover .mini-site-canvas {
  transform: translateY(-10px);
}

.mini-site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(23, 23, 23, 0.07);
  padding-bottom: 6px;
}

.mini-site-brand {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-charcoal);
}

.mini-site-menu {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.53rem;
  color: var(--c-slate);
  letter-spacing: 0.05em;
}

.mini-site-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-site-kicker {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--c-deep-sage);
  letter-spacing: 0.08em;
}

.mini-site-h1 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-charcoal);
}

.mini-site-lead {
  font-size: 0.62rem;
  color: var(--c-slate);
  line-height: 1.35;
  margin: 0;
}

.mini-site-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding: 6px 8px;
  background: #FFFFFF;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 4px;
}

.mini-site-specimen {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mini-site-spec-label {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  color: var(--c-deep-sage);
  font-weight: 700;
}

.mini-site-spec-name {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--c-charcoal);
}

.mini-site-spec-price {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: var(--c-slate);
}

.mini-site-cta-pill {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 700;
  padding: 4px 7px;
  background: var(--c-charcoal);
  color: #FFFFFF;
  border-radius: 3px;
  letter-spacing: 0.04em;
  transition: background-color var(--transition-fast);
}

.service-v3-card:hover .mini-site-cta-pill {
  background: var(--c-deep-sage);
}

/* Preview 2: Smartphone Application (Apps & Products) */
.proto-phone-frame {
  height: 100%;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  background: #FAF9F5;
  transition: transform 420ms var(--ease-cinematic);
}

.service-v3-card:hover .proto-phone-frame {
  transform: translateY(-4px);
}

.proto-phone-notch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 6px 4px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}

.proto-phone-time,
.proto-phone-status {
  font-family: var(--font-mono);
  font-size: 0.53rem;
  font-weight: 600;
  color: var(--c-slate);
}

.proto-phone-island {
  width: 40px;
  height: 6px;
  background: var(--c-charcoal);
  border-radius: 6px;
}

.proto-phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 6px;
}

.mini-app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mini-app-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--c-charcoal);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.mini-app-subtitle {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--c-slate);
}

.mini-app-badge {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--c-deep-sage);
  background: rgba(70, 97, 93, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.mini-app-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--c-slate);
}

.mini-app-highlight {
  color: var(--c-deep-sage);
  font-weight: 700;
}

.mini-app-progress-bar {
  height: 4px;
  background: rgba(23, 23, 23, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.mini-app-progress-fill {
  width: 67%;
  height: 100%;
  background: var(--c-deep-sage);
  border-radius: 2px;
}

.mini-app-tasklist {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-app-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 7px;
  background: #FFFFFF;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 5px;
  gap: 7px;
}

.mini-app-check {
  font-size: 0.62rem;
  color: #2E7D32;
  font-weight: 800;
}

.mini-app-pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--c-deep-sage);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(70, 97, 93, 0.25);
  animation: miniPulse 1.8s infinite ease-in-out;
}

@keyframes miniPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.mini-app-task-text {
  flex: 1;
}

.mini-app-task-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--c-charcoal);
  line-height: 1.2;
}

.mini-app-task-sub {
  font-size: 0.5rem;
  color: var(--c-slate);
}

.mini-task-status-done,
.mini-task-status-active {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}

.mini-task-status-done {
  background: rgba(46, 125, 50, 0.12);
  color: #1B5E20;
}

.mini-task-status-active {
  background: rgba(70, 97, 93, 0.12);
  color: var(--c-deep-sage);
}

.mini-app-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 5px;
  border-top: 1px solid rgba(23, 23, 23, 0.06);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--c-slate);
}

.mini-tab.is-active {
  color: var(--c-deep-sage);
  font-weight: 700;
}

/* Preview 3: AI Automation Workflow Terminal */
.service-v3-preview--websites {
  background: #F8F7F2;
}

.service-v3-preview--apps {
  background: #FAF9F5;
}

.service-v3-preview--auto {
  background: #171717;
  border-color: #262827;
}

.proto-workflow-terminal {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  color: #F6F5EF;
  background: radial-gradient(circle at 50% 0%, rgba(142, 170, 165, 0.12) 0%, transparent 75%), #171717;
}

.proto-wf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding-bottom: 5px;
}

.proto-wf-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.proto-wf-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8EAAA5;
  box-shadow: 0 0 6px #8EAAA5;
  animation: miniPulse 2s infinite ease-in-out;
}

.proto-wf-title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F6F5EF;
}

.proto-wf-metric {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: #8EAAA5;
}

/* Diagram Nodes (Left-to-Right Workflow) */
.proto-wf-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 4px 0;
}

.proto-wf-node {
  background: #202020;
  border: 1px solid rgba(142, 170, 165, 0.22);
  border-radius: 5px;
  padding: 6px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  transition: border-color 300ms ease, background 300ms ease;
}

.node-ai {
  border-color: rgba(142, 170, 165, 0.65);
  background: #232826;
}

.proto-wf-node-icon {
  font-size: 0.72rem;
  color: #8EAAA5;
  line-height: 1;
}

.proto-wf-node-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.proto-wf-node-tag {
  font-family: var(--font-mono);
  font-size: 0.44rem;
  letter-spacing: 0.08em;
  color: #8EAAA5;
}

.proto-wf-node-name {
  font-size: 0.56rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proto-wf-node-status {
  font-family: var(--font-mono);
  font-size: 0.46rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
}

.proto-wf-node-status.is-complete {
  background: rgba(142, 170, 165, 0.28);
  color: #FFFFFF;
}

.proto-wf-node-status.is-active {
  background: rgba(70, 97, 93, 0.6);
  color: #FFFFFF;
}

.proto-wf-node-status.is-success {
  background: rgba(46, 125, 50, 0.45);
  color: #A5D6A7;
}

/* Connecting lines with signal particle animation */
.proto-wf-connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
}

.proto-wf-line {
  position: absolute;
  height: 1px;
  left: 0;
  right: 0;
  background: rgba(142, 170, 165, 0.35);
}

.proto-wf-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8EAAA5;
  box-shadow: 0 0 5px #8EAAA5;
}

.particle-1 {
  animation: flowParticle1 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.particle-2 {
  animation: flowParticle2 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes flowParticle1 {
  0%, 10% { left: 0%; opacity: 0; }
  15% { opacity: 1; }
  32% { left: 100%; opacity: 1; }
  35%, 100% { left: 100%; opacity: 0; }
}

@keyframes flowParticle2 {
  0%, 42% { left: 0%; opacity: 0; }
  47% { opacity: 1; }
  68% { left: 100%; opacity: 1; }
  72%, 100% { left: 100%; opacity: 0; }
}

.proto-wf-arrow {
  font-size: 0.62rem;
  color: rgba(142, 170, 165, 0.5);
  position: relative;
  z-index: 1;
}

/* Sequenced Animation for AI Workflow */
@keyframes nodeInputPulse {
  0%, 100% { border-color: rgba(142, 170, 165, 0.22); background: #202020; }
  10%, 25% { border-color: #8EAAA5; background: #262D2B; }
}

@keyframes nodeAiPulse {
  0%, 25% { border-color: rgba(142, 170, 165, 0.3); background: #202020; box-shadow: none; }
  35%, 60% { border-color: #8EAAA5; background: #252F2C; box-shadow: 0 0 12px rgba(142, 170, 165, 0.2); }
  75%, 100% { border-color: rgba(142, 170, 165, 0.3); background: #202020; box-shadow: none; }
}

@keyframes nodeActionPulse {
  0%, 60% { border-color: rgba(142, 170, 165, 0.22); background: #202020; }
  70%, 92% { border-color: #81C784; background: #1E2B23; }
  100% { border-color: rgba(142, 170, 165, 0.22); background: #202020; }
}

@keyframes outputPulse {
  0%, 65% { border-color: rgba(142, 170, 165, 0.25); background: #1E2321; }
  72%, 94% { border-color: #8EAAA5; background: #232B28; }
  100% { border-color: rgba(142, 170, 165, 0.25); background: #1E2321; }
}

.node-input {
  animation: nodeInputPulse 3.6s infinite ease-in-out;
}

.node-ai {
  animation: nodeAiPulse 3.6s infinite ease-in-out;
}

.node-action {
  animation: nodeActionPulse 3.6s infinite ease-in-out;
}

/* Output Result Block */
.proto-wf-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1E2321;
  border: 1px solid rgba(142, 170, 165, 0.3);
  border-radius: 4px;
  padding: 5px 8px;
  gap: 6px;
  animation: outputPulse 3.6s infinite ease-in-out;
}

.proto-wf-output-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.proto-wf-check-mark {
  color: #8EAAA5;
  font-size: 0.68rem;
  font-weight: 800;
}

.proto-wf-output-text {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  color: #D2DAD8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proto-wf-output-text strong {
  color: #FFFFFF;
}

.proto-wf-pill {
  font-family: var(--font-mono);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  background: rgba(142, 170, 165, 0.25);
  padding: 2px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* 3. Card Content Area */
.service-v3-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.service-v3-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--theme-text);
  margin: 0;
  line-height: 1.15;
  transition: color var(--transition-fast);
}

.service-v3-card:hover .service-v3-title {
  color: var(--c-deep-sage);
}

.service-v3-desc {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--theme-subtext);
  line-height: 1.55;
  margin: 0;
}

.service-v3-capabilities {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-slate);
  letter-spacing: 0.02em;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(23, 23, 23, 0.12);
}

/* 4. Footer CTA */
.service-v3-footer {
  margin-top: 20px;
  padding-top: 14px;
}

.service-v3-cta {
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-deep-sage);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Accessible clickable card overlay */
.service-v3-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.service-v3-cta:focus-visible {
  outline: none;
}

.service-v3-card:focus-within {
  outline: 2px solid var(--c-deep-sage);
  outline-offset: 2px;
}

.service-v3-cta-arrow {
  font-size: 1.1rem;
  transition: transform 220ms var(--ease-cinematic);
}

.service-v3-card:hover .service-v3-cta-arrow {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints for Services V3
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-v3-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .service-v3-card:nth-child(3) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .services-v3-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-v3-card:nth-child(3) {
    grid-column: span 1;
  }
  .service-v3-card {
    padding: 20px 16px;
  }
  .service-v3-preview {
    height: 210px;
  }
  .proto-wf-diagram {
    gap: 3px;
  }
  .proto-wf-connector {
    width: 14px;
  }
}

@media (max-width: 380px) {
  .service-v3-card {
    padding: 18px 14px;
  }
  .proto-wf-node-name {
    font-size: 0.5rem;
  }
  .proto-wf-output-text {
    font-size: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particle-1, .particle-2, .mini-app-pulse-dot, .proto-wf-pulse {
    animation: none !important;
  }
  .mini-site-canvas, .proto-phone-frame, .service-v3-card {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   11. "GOOD TECHNOLOGY SHOULD FEEL SIMPLE." KINETIC SCROLL ALIGNMENT
   -------------------------------------------------------------------------- */
.kinetic-alignment-section {
  padding: clamp(70px, 10vw, 120px) 0;
  overflow: hidden;
  position: relative;
  background-color: transparent;
}

.kinetic-alignment-phrase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--theme-text);
  user-select: none;
}

.align-word {
  display: inline-block;
  will-change: transform, opacity;
  transition: transform 80ms ease-out, opacity 80ms ease-out, color var(--transition-fast);
  transform-origin: left center;
}

.align-word:hover {
  color: var(--c-deep-sage);
}

/* --------------------------------------------------------------------------
   12. PORTFOLIO & CINEMATIC DARK MODE TRANSITION
   -------------------------------------------------------------------------- */
.portfolio-cinema-section {
  position: relative;
  transition: background-color var(--transition-theme), color var(--transition-theme);
  padding-top: clamp(80px, 11vw, 140px);
  padding-bottom: clamp(80px, 11vw, 140px);
}

/* Ensure Portfolio Section Header stays perfectly readable on the light canvas */
#portfolio-cinema-h,
.portfolio-cinema-section h2 {
  color: var(--text-primary-light) !important;
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.portfolio-cinema-section .section-index-tag {
  color: var(--text-eyebrow-light) !important;
}

/* Quick Directory: high contrast on light canvas */
.built-live-links-bar > span {
  color: var(--text-accent-light) !important;
}

.built-live-links-bar .btn-tactile {
  background-color: var(--c-charcoal) !important;
  color: var(--c-white) !important;
  border-color: var(--c-charcoal) !important;
}

.built-live-links-bar .btn-tactile .btn-arrow-icon {
  color: var(--c-white) !important;
}

.built-live-links-bar .btn-tactile:hover {
  background-color: var(--c-deep-sage) !important;
  border-color: var(--c-deep-sage) !important;
  color: var(--c-white) !important;
}

.built-live-links-bar .btn-tactile:hover .btn-arrow-icon {
  color: var(--c-white) !important;
}

/* Dark Mode class applied during portfolio viewing */
body.theme-dark {
  --theme-bg: var(--c-charcoal);
  --theme-text: var(--text-primary-dark);
  --theme-border: rgba(255, 255, 255, 0.12);
  --theme-card-bg: #222222;
  --theme-subtext: var(--text-muted-dark);
}

.portfolio-cinema-section.dark-mode-active {
  background-color: var(--c-charcoal);
  color: var(--c-white);
}

.portfolio-list-cinema {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 96px);
  margin-top: 64px;
}

.cinema-project-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: #222222;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-normal);
  color: var(--text-secondary-dark);
}

.cinema-project-card:hover {
  border-color: var(--c-sage);
  transform: translateY(-4px);
}

/* Cinematic Clip-Path Image Reveal */
.cinema-project-preview {
  position: relative;
  height: clamp(300px, 38vw, 480px);
  background-color: #EAE8DE;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  clip-path: inset(0 0 0 0 round 16px);
  transition: clip-path 600ms var(--ease-cinematic);
}

body.theme-dark .cinema-project-preview {
  background-color: #1a1a1a;
}

.cinema-project-details {
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cinema-project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-muted-dark);
}

.cinema-project-meta span:first-child {
  color: var(--text-accent-dark) !important;
}

.cinema-project-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary-dark) !important;
  transition: transform var(--transition-fast);
}

.cinema-project-card:hover .cinema-project-title {
  transform: translateX(8px);
}

.cinema-project-details p {
  color: var(--text-secondary-dark) !important;
}

.cinema-project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 28px 0;
}

.cinema-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(142, 170, 165, 0.12) !important;
  border: 1px solid rgba(142, 170, 165, 0.25) !important;
  color: var(--text-accent-dark) !important;
}

body.theme-dark .cinema-tag {
  background: rgba(142, 170, 165, 0.12) !important;
  border-color: rgba(142, 170, 165, 0.25) !important;
  color: var(--text-accent-dark) !important;
}

/* Project Problem -> Solution -> Outcome Breakdown */
.cinema-project-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 12px 0;
  font-size: 0.875rem;
  color: var(--text-secondary-dark-muted);
}

.flow-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.5;
}

.flow-row span:not(.flow-label) {
  color: var(--text-secondary-dark);
}

.flow-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-accent-dark) !important;
  background: rgba(142, 170, 165, 0.12) !important;
  border: 1px solid rgba(142, 170, 165, 0.28) !important;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  flex-shrink: 0;
}

body.theme-dark .flow-label {
  color: var(--text-accent-dark) !important;
  background: rgba(142, 170, 165, 0.12) !important;
  border-color: rgba(142, 170, 165, 0.28) !important;
}

.project-outcome-box {
  background: rgba(142, 170, 165, 0.14) !important;
  border-left: 3px solid var(--c-sage) !important;
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 8px 0 20px 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary-dark) !important;
}

body.theme-dark .project-outcome-box {
  background: rgba(142, 170, 165, 0.14) !important;
  border-left-color: var(--c-sage) !important;
  color: var(--text-secondary-dark) !important;
}

.cinema-project-details .btn-tactile {
  background-color: var(--c-offwhite) !important;
  color: var(--c-charcoal) !important;
  border-color: var(--c-offwhite) !important;
}

.cinema-project-details .btn-tactile:hover {
  background-color: var(--c-sage) !important;
  border-color: var(--c-sage) !important;
  color: var(--c-charcoal) !important;
}

/* --------------------------------------------------------------------------
   13. PROCESS — PROGRESSIVE VERTICAL LINE FILL
   -------------------------------------------------------------------------- */
.process-vertical-section {
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
}

.process-vertical-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
  margin-top: 56px;
  padding-left: clamp(40px, 6vw, 72px);
}

/* Vertical Progressive Line */
.process-vertical-line {
  position: absolute;
  top: 0;
  left: 18px;
  width: 2px;
  height: 100%;
  background-color: var(--theme-border);
}

.process-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--c-sage);
  transition: height 120ms ease-out;
}

.process-milestone-step {
  position: relative;
  transition: transform var(--transition-normal);
}

.milestone-badge-dot {
  position: absolute;
  left: calc(-1 * clamp(40px, 6vw, 72px) + 9px);
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--theme-bg);
  border: 2px solid var(--theme-border);
  transition: all var(--transition-normal);
}

.process-milestone-step.is-active .milestone-badge-dot {
  background-color: var(--c-charcoal);
  border-color: var(--c-sage);
  box-shadow: 0 0 0 4px var(--c-sage-tint);
}

.milestone-step-h {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--theme-text);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.process-milestone-step.is-active .milestone-step-h {
  color: var(--c-deep-sage);
  transform: translateX(8px);
}

/* --------------------------------------------------------------------------
   14. TEXT THAT FOLLOWS THE USER (PHYSICAL DELAY)
   -------------------------------------------------------------------------- */
.text-follower-section {
  padding: clamp(80px, 10vw, 130px) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.floating-cursor-phrase {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--c-charcoal);
  will-change: transform;
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   16. TEAM — THE PEOPLE BEHIND PIPITWORKS
   -------------------------------------------------------------------------- */
.team-cinema-section {
  border-top: 1px solid var(--theme-border);
  padding: clamp(80px, 10vw, 140px) 0;
  background-color: transparent;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.team-card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-sage);
  box-shadow: 0 16px 36px rgba(23, 23, 23, 0.05);
}

.team-card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--theme-border);
  padding-bottom: 12px;
}

.team-card-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-deep-sage);
  letter-spacing: 0.08em;
}

body.theme-dark .team-card-index {
  color: var(--c-sage);
}

.team-card-status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-accent-light);
  letter-spacing: 0.04em;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.team-avatar-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-charcoal);
  color: var(--c-offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  border: 2px solid var(--c-deep-sage);
  flex-shrink: 0;
  overflow: hidden;
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--theme-text);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-deep-sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.team-bio {
  font-size: 0.95rem;
  color: var(--theme-subtext);
  line-height: 1.65;
}


/* --------------------------------------------------------------------------
   16. CONTACT & FINAL CTA
   -------------------------------------------------------------------------- */
.site-cinema-footer {
  background-color: var(--c-charcoal);
  color: var(--c-offwhite);
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top-banner {
  text-align: center;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.footer-giant-h {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-form-shell {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 44px);
  color: var(--c-offwhite);
}

/* --------------------------------------------------------------------------
   16B. CREATIVE SOCIAL DISCOVERY — STILL CURIOUS?
   -------------------------------------------------------------------------- */
.social-discovery-section {
  background-color: #121313;
  color: var(--c-offwhite);
  padding: clamp(90px, 11vw, 150px) 0 clamp(80px, 10vw, 130px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.social-discovery-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(142, 170, 165, 0.08) 0%, rgba(18, 19, 19, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.social-header {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.social-editorial-h {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--c-offwhite);
  margin-top: 12px;
  margin-bottom: 24px;
}

.social-editorial-sub {
  color: var(--c-sage);
  display: inline-block;
}

.social-intro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.social-editorial-desc {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: #B5BEBC;
  max-width: 52ch;
  line-height: 1.6;
}

.social-microcopy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #D4DDD9;
  letter-spacing: 0.02em;
}

.social-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-sage);
  box-shadow: 0 0 10px rgba(142, 170, 165, 0.8);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   INTERACTIVE SOCIAL TYPOGRAPHY BOARD
   -------------------------------------------------------------------------- */
.social-interactive-board {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: clamp(48px, 7vw, 80px);
}

.social-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) 1.2fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 4.5vw, 48px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: var(--c-offwhite);
  position: relative;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-cinematic), transform 0.6s var(--ease-cinematic), padding var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-fast);
}

.social-row.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.social-row-left {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.5vw, 32px);
}

.social-row-num {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.2vw, 1.15rem);
  font-weight: 700;
  color: var(--text-accent-dark);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.social-row-name-wrap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.social-row-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--c-offwhite);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-row-handle {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  font-weight: 600;
  color: var(--text-accent-dark);
  letter-spacing: 0.02em;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.social-row-center {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #9EA9A7;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.social-row-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.social-row-action {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.social-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--c-offwhite);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Desktop Hover Interaction */
@media (hover: hover) and (min-width: 901px) {
  .social-row:hover {
    border-bottom-color: var(--c-sage);
    background: rgba(255, 255, 255, 0.02);
    padding-left: 16px;
    padding-right: 16px;
  }

  .social-row:hover .social-row-num {
    color: var(--c-sage);
  }

  .social-row:hover .social-row-name {
    color: var(--c-white);
    transform: translateX(8px);
  }

  .social-row:hover .social-row-handle {
    opacity: 1;
    color: var(--c-offwhite);
  }

  .social-row:hover .social-row-center {
    color: #D6DFDD;
  }

  .social-row:hover .social-row-action {
    color: var(--c-white);
  }

  .social-row:hover .social-arrow {
    transform: translate(4px, -4px);
    border-color: var(--c-sage);
    background: var(--c-deep-sage);
    color: var(--c-white);
    box-shadow: 0 4px 18px rgba(70, 97, 93, 0.4);
  }
}


/* --------------------------------------------------------------------------
   FINAL MINIMAL FOOTER
   -------------------------------------------------------------------------- */
.site-minimal-footer {
  background-color: var(--c-charcoal);
  color: var(--c-offwhite);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(48px, 6vw, 68px) 0 clamp(36px, 5vw, 52px) 0;
  position: relative;
  z-index: 10;
}

.footer-minimal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-minimal-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-offwhite);
}

.footer-minimal-manifesto {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-sage);
  text-transform: uppercase;
}

.footer-center-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8125rem;
  color: #8D9997;
}

.footer-minimal-copy {
  color: #A6B2B0;
}

.footer-minimal-note {
  font-size: 0.75rem;
  color: var(--text-accent-dark);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-social-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-social-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: #8D9997;
  text-transform: uppercase;
}

.footer-social-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  min-height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: var(--c-offwhite);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.footer-social-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--c-sage);
  color: var(--c-sage);
  transform: translateY(-1px);
}

.footer-social-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.footer-sep-dot {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
}

.footer-utility-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.footer-utility-links a {
  color: #8D9997;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-utility-links a:hover {
  color: var(--c-offwhite);
}

/* --------------------------------------------------------------------------
   17. MODAL
   -------------------------------------------------------------------------- */
.modal-dialog {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 95000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog.is-active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(23, 23, 23, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content-card {
  position: relative;
  z-index: 1;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 44px);
  box-shadow: 0 24px 60px rgba(23, 23, 23, 0.18);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-offwhite);
  color: var(--c-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE BREAKPOINTS (Desktop -> Laptop -> Tablet -> Mobile)
   -------------------------------------------------------------------------- */

/* Prevent horizontal overflow across all viewports without breaking scroll momentum */
html, body {
  overflow-x: clip;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0;
}

body.nav-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Base mobile navigation elements hidden on desktop */
@media (min-width: 961px) {
  .nav-mobile-toggle,
  .nav-mobile-drawer {
    display: none !important;
  }
}

/* Intermediate Laptops & Tablets (≤ 1240px) */
@media (max-width: 1240px) {
  .nav-status-badge .status-badge-text {
    display: none;
  }

  .nav-status-badge {
    padding: 6px;
    border-radius: 50%;
  }

  .nav-link-item {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .nav-desktop-cta {
    padding: 8px 15px !important;
    font-size: 0.78rem !important;
    gap: 6px !important;
  }

  .nav-actions-group {
    gap: 8px;
  }
}

/* Compact Desktops / Small Laptops (≤ 1080px) */
@media (max-width: 1080px) {
  .nav-status-badge {
    display: none !important;
  }

  .nav-link-item {
    padding: 5px 7px;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
  }

  .nav-links-menu {
    padding: 3px;
    gap: 1px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-logo-img {
    height: 34px !important;
  }
}

/* Laptops / Small Desktops / Tablet Landscape (≤ 1024px) */
@media (max-width: 1024px) {
  .hero-kinetic-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-lead-text {
    max-width: 60ch;
  }

  .cinema-project-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cinema-project-preview {
    height: 300px;
  }
}

/* Tablets / Mobile Transition (≤ 960px) */
@media (max-width: 960px) {
  .nav-desktop-menu,
  .nav-links-menu,
  .nav-link-item,
  .nav-desktop-cta,
  .nav-status-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  .nav-whatsapp-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    width: auto !important;
    height: 36px !important;
    padding: 6px 12px !important;
    gap: 6px !important;
    border-radius: var(--radius-pill) !important;
    background: rgba(37, 211, 102, 0.1) !important;
    border: 1px solid rgba(37, 211, 102, 0.35) !important;
    color: var(--theme-text) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .nav-whatsapp-btn .nav-wa-icon {
    width: 16px !important;
    height: 16px !important;
  }

  .nav-whatsapp-btn .nav-wa-text {
    display: inline-block !important;
    font-size: 0.75rem !important;
  }

  .nav-mobile-toggle {
    display: flex !important;
  }

  .nav-pill-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 8px 16px;
  }

  .hero-kinetic-section {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 48px) !important;
    padding-bottom: 60px;
  }

  .hero-word-hover-label {
    display: none; /* Avoid tooltip horizontal overflow on touch screens */
  }

  .problem-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Services V3 Layout on Tablets / Mobile (≤ 960px) */
  .services-section-v3 {
    padding: clamp(48px, 7vw, 72px) 0;
  }

  .service-mobile-visual {
    display: block;
    margin-top: 16px;
    border-top: 1px solid var(--theme-border);
    padding-top: 14px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .social-interactive-board {
    margin-top: 40px;
  }

  .social-row {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 28px 0;
  }

  .social-row-left {
    gap: 14px;
  }

  .social-row-name-wrap {
    flex-direction: column;
    gap: 4px;
  }

  .social-row-name {
    font-size: clamp(2.2rem, 7vw, 3.4rem);
  }

  .social-row-handle {
    font-size: 0.92rem;
  }

  .social-row-center {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    color: #A4B0AE;
    margin-top: -6px;
  }

  .social-row-right {
    align-self: center;
  }

  .social-row-action .action-text {
    display: none; /* Keep clean high-impact typography and arrow on mobile */
  }

  .social-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    border-color: rgba(142, 170, 165, 0.4);
    color: var(--c-sage);
  }

  .footer-minimal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-links-col {
    align-items: flex-start;
    gap: 12px;
  }
}

/* Mobile Screens & Small Tablets (≤ 768px) */
@media (max-width: 768px) {
  /* Tighter, intentional mobile pacing */
  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* Mobile Hero */
  .hero-headline-kinetic {
    font-size: clamp(2.2rem, 9.5vw, 3.8rem);
    line-height: 1.05;
  }

  .hero-actions-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero-actions-group .btn-tactile {
    width: 100%;
    min-height: 48px;
  }

  /* Responsive 2D System Diagram */
  .hero-system-diagram {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 480 / 380;
    height: auto;
    margin: 0 auto;
  }

  .sys-central-node {
    width: 86px;
    height: 86px;
  }

  .sys-core-brand {
    font-size: 0.6875rem;
  }

  .sys-core-sub {
    font-size: 0.5rem;
  }

  .sys-card {
    padding: 6px 12px;
    border-radius: 8px;
  }

  .sys-card-title {
    font-size: 0.72rem;
  }

  .sys-card-meta {
    font-size: 0.58rem;
  }

  .sys-card-websites {
    top: 6px;
  }

  .sys-card-apps {
    bottom: 8px;
    left: 4px;
  }

  .sys-card-automation {
    bottom: 8px;
    right: 4px;
  }

  /* Section 2: Problem */
  .problem-section {
    padding: 52px 0 32px 0;
  }

  .problem-statement-h {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    line-height: 1.1;
  }

  .problem-card {
    padding: 18px 20px;
  }

  /* Kinetic Philosophy Alignment Statement */
  .kinetic-alignment-section {
    padding: 52px 0;
  }

  .kinetic-alignment-phrase {
    font-size: clamp(2rem, 8.5vw, 4rem);
    line-height: 1.05;
  }

  /* Section 3: Services / What We Build */
  .services-interactive-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .services-heading-group {
    margin-bottom: 20px;
  }

  .services-editorial-h {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
    margin-bottom: 8px;
  }

  .services-manifesto-sub {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .services-v3-header {
    margin-bottom: 24px;
  }

  .service-item-outcome {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .service-item-meta {
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .service-item-cta {
    font-size: 0.72rem;
    margin-top: 2px;
  }

  .service-mobile-visual {
    margin-top: 14px;
    padding-top: 12px;
  }

  .proto-web-canvas,
  .proto-app-canvas,
  .proto-auto-canvas {
    padding: 14px 12px;
    gap: 10px;
  }

  .proto-web-h1 {
    font-size: 1.125rem;
    line-height: 1.15;
  }

  .proto-web-lead {
    font-size: 0.72rem;
  }

  .proto-web-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .proto-web-card {
    display: none;
  }

  .proto-app-name {
    font-size: 1.1rem;
  }

  .proto-app-stats-bar {
    font-size: 0.65rem;
  }

  .proto-task-card {
    padding: 8px 10px;
  }

  .proto-task-title {
    font-size: 0.72rem;
  }

  .proto-task-sub {
    font-size: 0.625rem;
  }

  .proto-flow-name {
    font-size: 1.05rem;
  }

  .proto-node-card {
    padding: 6px 10px;
  }

  .proto-node-sub {
    font-size: 0.625rem;
  }

  /* Case Studies */
  .portfolio-list-cinema {
    gap: 40px;
    margin-top: 40px;
  }

  .cinema-project-preview {
    height: auto;
    min-height: 200px;
    padding: 20px 16px;
  }

  .cinema-project-details {
    padding: 24px 20px;
  }

  .cinema-project-title {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
  }

  .flow-row {
    flex-direction: column;
    gap: 4px;
  }

  .flow-label {
    min-width: auto;
  }

  /* Process Section */
  .process-vertical-track {
    padding-left: 32px;
    gap: 32px;
    margin-top: 36px;
  }

  .process-vertical-line {
    left: 8px;
  }

  .milestone-badge-dot {
    left: -28px;
    width: 14px;
    height: 14px;
    top: 5px;
  }

  .milestone-step-h {
    font-size: clamp(1.35rem, 5.5vw, 1.8rem);
  }

  /* Team Section */
  .team-card {
    padding: 24px 20px;
  }

  .team-avatar-box {
    width: 68px;
    height: 68px;
  }

  .team-name {
    font-size: 1.35rem;
  }

  /* Focus Phrase */
  .text-follower-section {
    padding: 52px 0;
  }

  .floating-cursor-phrase {
    font-size: clamp(1.8rem, 6.5vw, 3rem);
    transform: none !important;
  }

  /* Footer & Final CTA */
  .footer-giant-h {
    font-size: clamp(2.4rem, 8vw, 4rem);
  }

  .footer-top-banner {
    padding-bottom: 48px;
  }

  .footer-form-shell {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .modal-content-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .modal-close-btn {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  /* Mock Browser Bar URL truncation */
  .cinema-project-preview span[style*="font-mono"] {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }

  /* Built live websites bar */
  .built-live-links-bar {
    gap: 8px !important;
  }
}

/* Small Smart Phones (≤ 480px / 375px) */
@media (max-width: 480px) {
  .nav-shell {
    padding: 0 12px;
  }

  .studio-nav {
    top: 10px;
  }

  .hero-kinetic-section {
    padding-top: calc(var(--nav-height) + 40px) !important;
  }

  .brand-logo-img {
    height: 50px !important;
    max-height: 52px !important;
    width: auto !important;
    object-fit: contain;
  }

  .nav-actions-group {
    gap: 8px;
  }

  .cinema-project-details div[style*="display: flex; gap: 12px; flex-wrap: wrap"] {
    flex-direction: column;
    align-items: stretch;
  }

  .cinema-project-details .btn-tactile {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .modal-dialog {
    padding: 10px;
  }

  .modal-content-card {
    padding: 20px 16px;
  }

  .hero-system-diagram {
    max-width: 320px;
  }

  .sys-central-node {
    width: 78px;
    height: 78px;
  }

  .sys-core-brand {
    font-size: 0.62rem;
  }

  .sys-core-sub {
    font-size: 0.46rem;
  }

  .sys-card {
    padding: 5px 9px;
  }

  .sys-card-title {
    font-size: 0.66rem;
  }

  .sys-card-meta {
    font-size: 0.52rem;
  }

  .sys-card-websites {
    top: 4px;
  }

  .sys-card-apps {
    bottom: 6px;
    left: 2px;
  }

  .sys-card-automation {
    bottom: 6px;
    right: 2px;
  }

  .hero-headline-kinetic {
    font-size: clamp(1.9rem, 8.5vw, 2.7rem);
  }

  .word-carousel-mask {
    height: 1.15em;
  }

  .social-intro-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .social-row-name {
    font-size: clamp(1.85rem, 8.5vw, 2.4rem);
  }

  .social-row-num {
    font-size: 0.82rem;
  }

  .social-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
}

/* Extra Compact Devices (≤ 360px - e.g. iPhone SE1, Galaxy Fold outer) */
@media (max-width: 360px) {
  .container {
    padding: 0 14px;
  }

  .nav-pill-container {
    padding: 6px 12px 6px 14px;
  }

  .brand-mark {
    font-size: 1rem;
  }

  .brand-logo-img {
    height: 46px !important;
    max-height: 48px !important;
  }

  .hero-headline-kinetic {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .cinema-project-preview span[style*="font-mono"] {
    max-width: 120px;
  }

  .hero-actions-group .btn-tactile {
    padding: 12px 14px;
    font-size: 0.8125rem;
  }

  .social-row-name {
    font-size: clamp(1.5rem, 7.5vw, 2rem);
  }

  .hero-system-diagram {
    max-width: 272px;
  }

  .sys-central-node {
    width: 68px;
    height: 68px;
  }

  .sys-core-brand {
    font-size: 0.54rem;
  }

  .sys-core-sub {
    font-size: 0.4rem;
  }

  .sys-card {
    padding: 4px 7px;
  }

  .sys-card-title {
    font-size: 0.6rem;
  }

  .sys-card-meta {
    display: none; /* Hide secondary meta to avoid text overflow on 320px */
  }

  .problem-statement-h {
    font-size: 1.55rem;
  }

  /* Services V3: Extra Narrow Mobile Adjustments (320px–360px) */
  .service-v3-card {
    padding: 16px 12px;
  }

  .service-v3-preview {
    height: 200px;
  }
}

/* --------------------------------------------------------------------------
   19. PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #studio-opening-seq {
    display: none !important;
  }

  .sys-central-node {
    animation: none !important;
    transform: translate(-50%, -50%) !important;
  }

  .sys-card-websites {
    animation: none !important;
    transform: translateX(-50%) !important;
  }

  .sys-card-apps,
  .sys-card-automation,
  .sys-svg-canvas,
  .sys-line-pulse {
    animation: none !important;
  }

  .social-row {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
