/* ============================================
   THE CURL COLLECTIVE - Main Stylesheet
   Refined with Luxury Typography & Premium Design
   ============================================ */

/* ============================================
   Preloader
   ============================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  background-color: #F6F4EF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 250px;
  max-height: 120px;
  object-fit: contain;
  opacity: 0;
  animation: preloader-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.preloader__tagline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6F6A63;
  margin-top: 1rem;
  text-align: center;
}

/* Preloader spinner */
.preloader__spinner {
  width: 24px;
  height: 24px;
  margin-top: 1rem;
  border: 2px solid #CFC6BB;
  border-top-color: #9CAF9A;
  border-radius: 50%;
  animation: preloader-spin 0.8s linear infinite;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile preloader adjustments */
@media (max-width: 480px) {
  .preloader__logo {
    max-width: 180px;
    max-height: 90px;
  }

  .preloader__tagline {
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
    padding: 0 1rem;
  }

  .preloader__spinner {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 320px) {
  .preloader__logo {
    max-width: 140px;
    max-height: 70px;
  }

  .preloader__tagline {
    font-size: 0.5rem;
  }

  .preloader__spinner {
    width: 18px;
    height: 18px;
  }
}

.preloader__words {
  position: relative;
  height: 1.5em;
  margin-top: -0.5rem;
  perspective: 500px;
}

.preloader__word {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6F6A63;
  opacity: 0;
}

.preloader__word.active {
  opacity: 1;
}

.preloader__char {
  display: inline-block;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.preloader__word.active .preloader__char {
  animation: preloaderFlip 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Stagger each letter */
.preloader__word.active .preloader__char:nth-child(1) { animation-delay: 0ms; }
.preloader__word.active .preloader__char:nth-child(2) { animation-delay: 40ms; }
.preloader__word.active .preloader__char:nth-child(3) { animation-delay: 80ms; }
.preloader__word.active .preloader__char:nth-child(4) { animation-delay: 120ms; }
.preloader__word.active .preloader__char:nth-child(5) { animation-delay: 160ms; }
.preloader__word.active .preloader__char:nth-child(6) { animation-delay: 200ms; }
.preloader__word.active .preloader__char:nth-child(7) { animation-delay: 240ms; }
.preloader__word.active .preloader__char:nth-child(8) { animation-delay: 280ms; }
.preloader__word.active .preloader__char:nth-child(9) { animation-delay: 320ms; }
.preloader__word.active .preloader__char:nth-child(10) { animation-delay: 360ms; }
.preloader__word.active .preloader__char:nth-child(11) { animation-delay: 400ms; }

@keyframes preloaderFlip {
  0% {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-8px) rotateX(-120deg);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
  }
}

@keyframes preloader-fade-in {
  to {
    opacity: 1;
  }
}

/* Prevent scroll while loading */
body.loading {
  overflow: hidden;
}

/* ============================================
   CSS Variables - Design System
   ============================================ */
:root {
  /* Colors - Zen Neutral Palette (70%) */
  --color-cream: #F6F4EF;          /* walls, background sections, negative space */
  --color-linen: #E6DFD5;          /* large blocks, cards, subtle contrast */
  --color-taupe: #CFC6BB;          /* secondary backgrounds, UI dividers, trim */

  /* Botanical Greens (20%) */
  --color-sage: #9CAF9A;           /* buttons, links, subtle highlights */
  --color-eucalyptus: #7E9886;     /* hover states, icons, section headers */
  --color-olive: #4F5E52;          /* footer text, logo marks, contrast elements */

  /* Warm Earth Accents (10%) */
  --color-clay: #C28E6A;           /* call-to-action accents, small details */
  --color-champagne: #C6A87D;      /* line icons, separators, subtle borders */

  /* Text Colors */
  --color-text: #3E3A36;           /* primary text (charcoal brown) */
  --color-text-light: #6F6A63;     /* descriptions, captions */
  --color-text-muted: #6F6A63;     /* muted secondary text */

  /* Mapped to existing variable names for compatibility */
  --color-primary: #4F5E52;        /* Deep Olive */
  --color-primary-light: #7E9886;  /* Eucalyptus */
  --color-primary-dark: #3E3A36;   /* Charcoal Brown */
  --color-accent: #9CAF9A;         /* Sage Green */
  --color-accent-light: #CFC6BB;   /* Taupe */
  --color-terracotta: #C28E6A;     /* Warm Clay */

  --color-bg: #F6F4EF;             /* Cream */
  --color-bg-alt: #E6DFD5;         /* Linen */
  --color-bg-warm: #CFC6BB;        /* Taupe */
  --color-bg-dark: #4F5E52;        /* Deep Olive */

  --color-border: #CFC6BB;          /* Taupe */

  /* Typography - Luxury Scale */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-meta: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Letter Spacing (Luxury Typography) */
  --tracking-subtle: 0.05em;
  --tracking-standard: 0.1em;
  --tracking-elegant: 0.15em;
  --tracking-dramatic: 0.2em;

  /* Spacing - Generous Whitespace */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Section Padding - Refined (less excessive) */
  --section-padding: clamp(3rem, 8vh, 5rem);
  --section-padding-lg: clamp(4rem, 10vh, 6rem);

  /* Container */
  --container-max: 1200px;
  --container-padding: clamp(1.5rem, 5vw, 3rem);

  /* Shadows - Soft, Premium (based on olive #4F5E52) */
  --shadow-sm: 0 2px 8px rgba(79, 94, 82, 0.06);
  --shadow-md: 0 4px 20px rgba(79, 94, 82, 0.08);
  --shadow-lg: 0 8px 40px rgba(79, 94, 82, 0.1);
  --shadow-xl: 0 20px 60px rgba(79, 94, 82, 0.12);

  /* Border Radius - Subtle/Soft */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Premium Easing Curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxury: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Animation Durations */
  --duration-fast: 300ms;
  --duration-normal: 500ms;
  --duration-slow: 800ms;
  --duration-luxury: 1000ms;
}

/* ============================================
   Pattern Overlays (Leafy decorations)
   ============================================ */
.has-pattern {
  position: relative;
  overflow: hidden;
}

.pattern-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
}

.pattern-overlay img {
  max-width: none;
}

.pattern-top-right {
  top: -50px;
  right: -50px;
}

.pattern-top-left {
  top: -50px;
  left: -50px;
}

.pattern-bottom-right {
  bottom: -50px;
  right: -50px;
}

.pattern-bottom-left {
  bottom: -100px;
  left: -50px;
}

.has-pattern > *:not(.pattern-overlay) {
  position: relative;
  z-index: 2;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Typography - Luxury Style
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 500;
}

/* Meta text - Sans-serif, tracked */
.meta-text,
.eyebrow {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-elegant);
  color: var(--color-text-muted);
}

p {
  margin-bottom: var(--space-6);
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__title {
  margin-bottom: var(--space-8);
}

.section__title--center {
  text-align: center;
}

/* Decorative Rule */
.rule-luxury {
  height: 1px;
  background: var(--color-accent);
  width: 60px;
  margin: var(--space-8) 0;
}

.rule-luxury--centered {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Buttons - Elegant Style
   ============================================ */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-elegant);
  border-radius: var(--radius-sm);
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo);
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border: 1px solid var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 8px 25px rgba(92, 74, 61, 0.2);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 8px 25px rgba(92, 74, 61, 0.2);
}

/* ============================================
   Header & Navigation - Minimal/Elegant
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--duration-fast) var(--ease-out-expo);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  max-width: none;
  padding: 0 var(--space-8);
}

.nav__logo-img {
  height: 95px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.nav__menu {
  display: flex;
  gap: var(--space-10);
}

.nav__link {
  font-family: var(--font-meta);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-standard);
  color: var(--color-text-light);
  padding: var(--space-2) 0;
  position: relative;
  display: inline-block;
  overflow: visible;
  perspective: 500px;
}

.nav__link span {
  display: inline-block;
}

.nav__link .char {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.nav__link:hover .char {
  animation: letterFlip 0.6s ease forwards;
}

/* Stagger each letter */
.nav__link .char:nth-child(1) { animation-delay: 0ms; }
.nav__link .char:nth-child(2) { animation-delay: 25ms; }
.nav__link .char:nth-child(3) { animation-delay: 50ms; }
.nav__link .char:nth-child(4) { animation-delay: 75ms; }
.nav__link .char:nth-child(5) { animation-delay: 100ms; }
.nav__link .char:nth-child(6) { animation-delay: 125ms; }
.nav__link .char:nth-child(7) { animation-delay: 150ms; }
.nav__link .char:nth-child(8) { animation-delay: 175ms; }
.nav__link .char:nth-child(9) { animation-delay: 200ms; }
.nav__link .char:nth-child(10) { animation-delay: 225ms; }
.nav__link .char:nth-child(11) { animation-delay: 250ms; }
.nav__link .char:nth-child(12) { animation-delay: 275ms; }
.nav__link .char:nth-child(13) { animation-delay: 300ms; }
.nav__link .char:nth-child(14) { animation-delay: 325ms; }
.nav__link .char:nth-child(15) { animation-delay: 350ms; }
.nav__link .char:nth-child(16) { animation-delay: 375ms; }
.nav__link .char:nth-child(17) { animation-delay: 400ms; }
.nav__link .char:nth-child(18) { animation-delay: 425ms; }

@keyframes letterFlip {
  0% {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-8px) rotateX(-120deg);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
  }
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width var(--duration-fast) var(--ease-out-expo);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__social {
  display: flex;
  gap: var(--space-4);
}

.nav__social-link {
  color: var(--color-text-muted);
  padding: var(--space-2);
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.nav__social-link svg {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
              color 0.3s ease;
}

.nav__social-link:hover {
  color: var(--color-primary);
}

.nav__social-link:hover svg {
  transform: rotate(15deg) scale(1.1);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-2);
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger to X animation */
.nav__toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav {
    position: relative;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    background-color: var(--color-bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    padding: 2rem;
  }

  .nav__menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__item {
    width: 100%;
    text-align: center;
  }

  .nav__link {
    font-size: 1.125rem;
    letter-spacing: var(--tracking-elegant);
    display: block;
    padding: 0.75rem 0;
  }

  .nav__social {
    display: none;
  }
}

/* ============================================
   Hero Section - Split Layout, Luxury
   ============================================ */
.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--color-bg);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-12);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__tagline {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-dramatic);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.hero__tagline::before,
.hero__tagline::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}

.hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  font-style: normal;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text);
  white-space: nowrap;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

.hero__description {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-bottom: var(--space-10);
  max-width: 550px;
}

.hero__buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  background-color: var(--color-bg-warm);
  min-height: 500px;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: linear-gradient(135deg, #E8DDD4 0%, #D4C4B5 50%, #C9B8A5 100%);
  color: var(--color-text-muted);
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-elegant);
}

.hero__image-placeholder::before {
  content: '';
  width: 80px;
  height: 80px;
  border: 2px solid var(--color-text-muted);
  border-radius: 50%;
  opacity: 0.3;
}

.hero__image-placeholder span {
  opacity: 0.5;
}

/* Mobile Hero */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__image {
    min-height: 50vh;
    order: -1;
  }

  .hero__content {
    padding: var(--space-12) var(--container-padding);
    text-align: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero__title {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero__description {
    max-width: 100%;
  }

  .hero__buttons {
    justify-content: center;
    width: 100%;
  }
}

/* ============================================
   About Section - With Photo Collage
   ============================================ */
.about {
  background-color: var(--color-bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 968px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

.about__content {
  max-width: 550px;
}

@media (max-width: 968px) {
  .about__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }
}

.about__content .section__title {
  margin-bottom: var(--space-4);
}

.about__content .rule-luxury {
  margin: var(--space-6) 0 var(--space-10);
}

@media (max-width: 968px) {
  .about__content .rule-luxury {
    margin: var(--space-6) auto var(--space-10);
  }
}

.about__text {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
}

.about__text:last-of-type {
  margin-bottom: var(--space-10);
}

/* ============================================
   Photo Collage - Scattered Layout
   ============================================ */
.photo-collage {
  position: relative;
  width: 100%;
  height: 500px;
}

@media (max-width: 968px) {
  .photo-collage {
    height: 400px;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .photo-collage {
    height: 320px;
  }
}

.photo-collage__item {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.photo-collage__item:hover {
  z-index: 10;
  box-shadow: var(--shadow-xl);
}

.photo-collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.photo-collage__item:hover img {
  transform: scale(1.05);
}

/* Item 1 - Large, back left */
.photo-collage__item--1 {
  width: 55%;
  height: 65%;
  top: 5%;
  left: 0;
  transform: rotate(-3deg);
  z-index: 1;
}

.photo-collage__item--1:hover {
  transform: rotate(-3deg) scale(1.03);
}

/* Item 2 - Medium, front right overlapping */
.photo-collage__item--2 {
  width: 45%;
  height: 50%;
  top: 0;
  right: 5%;
  transform: rotate(2deg);
  z-index: 3;
}

.photo-collage__item--2:hover {
  transform: rotate(2deg) scale(1.03);
}

/* Item 3 - Small, bottom left */
.photo-collage__item--3 {
  width: 40%;
  height: 45%;
  bottom: 0;
  left: 15%;
  transform: rotate(4deg);
  z-index: 2;
}

.photo-collage__item--3:hover {
  transform: rotate(4deg) scale(1.03);
}

/* Item 4 - Medium, bottom right */
.photo-collage__item--4 {
  width: 48%;
  height: 48%;
  bottom: 5%;
  right: 0;
  transform: rotate(-2deg);
  z-index: 4;
}

.photo-collage__item--4:hover {
  transform: rotate(-2deg) scale(1.03);
}

/* Placeholder styling for collage */
.photo-collage__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8DDD4 0%, #D4C4B5 50%, #C4B4A2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
}

.photo-collage__placeholder::before {
  content: '';
  width: 50px;
  height: 50px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.25;
}

.photo-collage__placeholder span {
  font-family: var(--font-meta);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-elegant);
  opacity: 0.4;
}

/* Mobile adjustments for collage */
@media (max-width: 480px) {
  .photo-collage__item--1 {
    width: 50%;
    height: 55%;
  }

  .photo-collage__item--2 {
    width: 42%;
    height: 45%;
  }

  .photo-collage__item--3 {
    width: 38%;
    height: 40%;
  }

  .photo-collage__item--4 {
    width: 45%;
    height: 42%;
  }
}

/* ============================================
   Services Section - Grid with Cards
   ============================================ */
.services {
  background-color: var(--color-bg-alt);
}

.services .section__title {
  margin-bottom: var(--space-4);
}

.services .rule-luxury {
  margin: var(--space-6) auto var(--space-12);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-6);
  color: var(--color-accent);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.service-card__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ============================================
   Our Crew Section
   ============================================ */
.crew {
  background-color: var(--color-bg);
}

.crew__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: var(--space-4);
}

.crew__group-photo {
  margin-bottom: var(--space-12);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.crew__group-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.crew__group-placeholder {
  width: 100%;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, #E8DDD4 0%, #D4C4B5 50%, #C4B4A2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-elegant);
  border-radius: var(--radius-md);
}

.crew__group-placeholder::before {
  content: '';
  width: 100px;
  height: 60px;
  border: 2px solid currentColor;
  border-radius: var(--radius-sm);
  opacity: 0.2;
}

.crew__group-placeholder span {
  opacity: 0.4;
}

.crew__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .crew__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .crew__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

.crew-card {
  display: flex;
  flex-direction: column;
}

.crew-card__image {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.crew-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.crew-card:hover .crew-card__image img {
  transform: scale(1.05);
}

.crew-card__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #E8DDD4 0%, #D4C4B5 40%, #C4B4A2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
}

.crew-card__placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.25;
}

.crew-card__placeholder span {
  font-family: var(--font-meta);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-elegant);
  opacity: 0.4;
}

.crew-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.crew-card__name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: var(--space-1);
}

.crew-card__role {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-standard);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.crew-card__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.crew-card__actions .btn--small {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-size: 0.6875rem;
}

.crew-card__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition:
    color var(--duration-fast) var(--ease-out-expo),
    border-color var(--duration-fast) var(--ease-out-expo);
}

.crew-card__social:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  background-color: var(--color-bg);
}

.cta.section--alt {
  background-color: var(--color-bg-alt);
}

.cta__content {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.cta__title {
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--space-4);
}

.cta__text {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg-alt);
  text-align: center;
}

.page-header--large {
  padding: var(--section-padding-lg) 0;
}

.page-header__title {
  font-weight: 400;
  margin-bottom: var(--space-6);
}

.page-header__subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Stylists Section (Booking Page)
   ============================================ */
.stylists__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-10);
}

@media (max-width: 768px) {
  .stylists__grid {
    grid-template-columns: 1fr;
  }
}

.stylist-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo);
}

.stylist-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stylist-card__image {
  position: relative;
  aspect-ratio: 4/3;
  background-color: var(--color-bg-warm);
  overflow: hidden;
}

.stylist-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.stylist-card:hover .stylist-card__image img {
  transform: scale(1.05);
}

.stylist-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.stylist-card__content {
  padding: var(--space-8);
}

.stylist-card__name {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.stylist-card__specialty {
  font-family: var(--font-meta);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-standard);
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.stylist-card__bio {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

.stylist-card__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.stylist-card__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition:
    color var(--duration-fast) var(--ease-out-expo),
    border-color var(--duration-fast) var(--ease-out-expo);
}

.stylist-card__social:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.stylist-card--placeholder {
  border-style: dashed;
  opacity: 0.7;
}

.stylist-card--placeholder:hover {
  transform: none;
  box-shadow: none;
}

/* Contact Alternative */
.contact-alt__content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.contact-alt__title {
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.contact-alt__text {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

/* ============================================
   Join Page
   ============================================ */
.join-info__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-16);
}

@media (max-width: 768px) {
  .join-info__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

.join-info__content .section__title {
  margin-bottom: var(--space-6);
}

.join-info__text {
  font-size: 1.1875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

.join-info__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.join-info__list li {
  position: relative;
  padding-left: var(--space-8);
  font-size: 1.125rem;
  color: var(--color-text-light);
}

.join-info__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* Join Page Collage */
.join-collage {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-collage .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-collage--join {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  height: 400px;
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .photo-collage--join {
    height: 350px;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .photo-collage--join {
    height: 280px;
  }
}

/* ============================================
   Footer - Elegant Dark
   ============================================ */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-bg);
  padding: var(--section-padding) 0 var(--space-8);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

@media (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-10);
  }
}

.footer__logo-img {
  max-width: 180px;
  height: auto;
  margin-bottom: var(--space-4);
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .footer__logo-img {
    margin-left: auto;
    margin-right: auto;
  }
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 500;
  display: block;
  margin-bottom: var(--space-2);
}

.footer__tagline {
  font-family: var(--font-meta);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-standard);
  color: rgba(246, 244, 239, 0.7);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .footer__nav {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-8);
  }
}

.footer__link {
  font-family: var(--font-meta);
  font-size: 1rem;
  color: rgba(246, 244, 239, 0.7);
  transition: color var(--duration-fast) var(--ease-out-expo);
  position: relative;
  display: inline-block;
  overflow: visible;
  perspective: 500px;
}

.footer__link span {
  display: inline-block;
}

.footer__link .char {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.footer__link:hover .char {
  animation: letterFlip 0.6s ease forwards;
}

/* Stagger each letter */
.footer__link .char:nth-child(1) { animation-delay: 0ms; }
.footer__link .char:nth-child(2) { animation-delay: 25ms; }
.footer__link .char:nth-child(3) { animation-delay: 50ms; }
.footer__link .char:nth-child(4) { animation-delay: 75ms; }
.footer__link .char:nth-child(5) { animation-delay: 100ms; }
.footer__link .char:nth-child(6) { animation-delay: 125ms; }
.footer__link .char:nth-child(7) { animation-delay: 150ms; }
.footer__link .char:nth-child(8) { animation-delay: 175ms; }
.footer__link .char:nth-child(9) { animation-delay: 200ms; }
.footer__link .char:nth-child(10) { animation-delay: 225ms; }
.footer__link .char:nth-child(11) { animation-delay: 250ms; }
.footer__link .char:nth-child(12) { animation-delay: 275ms; }
.footer__link .char:nth-child(13) { animation-delay: 300ms; }
.footer__link .char:nth-child(14) { animation-delay: 325ms; }
.footer__link .char:nth-child(15) { animation-delay: 350ms; }
.footer__link .char:nth-child(16) { animation-delay: 375ms; }
.footer__link .char:nth-child(17) { animation-delay: 400ms; }
.footer__link .char:nth-child(18) { animation-delay: 425ms; }

.footer__link:hover {
  color: var(--color-bg);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .footer__social {
    justify-content: center;
  }
}

.footer__social-link {
  color: rgba(246, 244, 239, 0.7);
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.footer__social-link svg {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
              color 0.3s ease;
}

.footer__social-link:hover {
  color: var(--color-bg);
}

.footer__social-link:hover svg {
  transform: rotate(15deg) scale(1.1);
}

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer__bottom p {
  font-family: var(--font-meta);
  font-size: 0.875rem;
  letter-spacing: var(--tracking-subtle);
  color: rgba(246, 244, 239, 0.5);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: 0ms; }
.stagger-item:nth-child(2) { transition-delay: 100ms; }
.stagger-item:nth-child(3) { transition-delay: 200ms; }
.stagger-item:nth-child(4) { transition-delay: 300ms; }
.stagger-item:nth-child(n+5) { transition-delay: 400ms; }

/* ============================================
   Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-animate,
  .stagger-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   Grain Texture Overlay (Atmosphere)
   ============================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   Enhanced Preloader with Counter
   ============================================ */
.preloader__progress {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.preloader__counter {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.preloader__percent {
  font-family: var(--font-meta);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: var(--space-1);
}

.preloader__bar {
  width: 120px;
  height: 2px;
  background: var(--color-border);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.1s linear;
}

/* ============================================
   Hero Title Enhancement
   ============================================ */
.hero__title-line {
  display: block;
}

.hero__title-line--italic {
  font-style: italic;
  color: var(--color-accent);
}

/* ============================================
   Button Hover Fill Effect
   ============================================ */
.btn--hover-fill {
  position: relative;
  overflow: hidden;
}

.btn--hover-fill .btn__text {
  position: relative;
  z-index: 1;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn--hover-fill .btn__hover-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn--hover-fill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn--hover-fill:hover .btn__text {
  transform: translateY(-100%);
}

.btn--hover-fill:hover .btn__hover-text {
  transform: translateY(0);
}

.btn--hover-fill:hover::before {
  transform: translateY(0);
}

/* ============================================
   Stats Bar Section
   ============================================ */
.stats-bar {
  padding: var(--space-16) 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 480px) {
  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.stat {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .stat {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.stat__suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-accent);
}

.stat__label {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-elegant);
  color: var(--color-text-muted);
}

/* ============================================
   Process Section
   ============================================ */
.process {
  background: var(--color-bg);
}

.process__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

/* Connecting line */
.process__steps::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-accent), var(--color-accent-light));
}

@media (max-width: 968px) {
  .process__steps {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-left: var(--space-16);
  }

  .process__steps::before {
    top: 0;
    bottom: 0;
    left: 1.5rem;
    right: auto;
    width: 1px;
    height: auto;
  }
}

.process-step {
  text-align: center;
  position: relative;
}

@media (max-width: 968px) {
  .process-step {
    text-align: left;
  }
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-6);
  background: var(--color-accent);
  border: none;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: white;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(184, 151, 122, 0.3);
}

@media (max-width: 968px) {
  .process-step__number {
    position: absolute;
    left: calc(-1 * var(--space-16));
    top: 0;
    margin-bottom: 0;
  }
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.process-step__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 968px) {
  .process-step__desc {
    max-width: none;
    margin: 0;
  }
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
  background: var(--color-bg-alt);
}

.testimonials__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 968px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.testimonial-card {
  background: var(--color-bg);
  padding: var(--space-8);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card__quote {
  margin-bottom: var(--space-6);
}

.testimonial-card__icon {
  color: var(--color-accent);
  opacity: 0.4;
  margin-bottom: var(--space-4);
}

.testimonial-card__quote blockquote {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-terracotta) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: white;
  box-shadow: 0 3px 10px rgba(184, 151, 122, 0.25);
}

.testimonial-card__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
}

.testimonial-card__detail {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-standard);
  color: var(--color-text-muted);
}

/* ============================================
   GSAP Animation Classes
   ============================================ */
[data-animate] {
  opacity: 0;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   Smooth Scroll Body (Lenis)
   ============================================ */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ============================================
   Interactive Hover Effects (Services)
   ============================================ */
@media (hover: hover) {
  .services__grid:hover .service-card {
    opacity: 0.5;
    transform: scale(0.98);
  }

  .services__grid:hover .service-card:hover {
    opacity: 1;
    transform: translateY(-8px) scale(1);
  }

  .services__grid .service-card {
    transition: opacity var(--duration-normal) var(--ease-out-expo),
                transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo);
  }
}

/* ============================================
   Custom Cursor
   ============================================ */
/* Custom cursor disabled */
.cursor {
  display: none !important;
}

/* ============================================
   Text Split Animation
   ============================================ */
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.split-text.is-visible .char {
  opacity: 1;
  transform: translateY(0);
}

.split-text .word {
  display: inline-block;
  overflow: hidden;
}

/* ============================================
   Parallax Effects
   ============================================ */
.parallax-container {
  overflow: hidden;
}

.parallax-element {
  will-change: transform;
}

/* Hero parallax */
.hero__image {
  overflow: hidden;
}

.hero__image-placeholder,
.hero__image img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ============================================
   Floating Animation
   ============================================ */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(20px) rotate(-2deg);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.float-animation--reverse {
  animation: float-reverse 7s ease-in-out infinite;
}

.float-animation--slow {
  animation-duration: 8s;
}

/* Pattern overlays float */
.pattern-overlay {
  animation: float 8s ease-in-out infinite;
}

.pattern-bottom-left,
.pattern-bottom-right {
  animation: float-reverse 9s ease-in-out infinite;
}

/* ============================================
   Magnetic Button Effect
   ============================================ */
.btn--magnetic {
  position: relative;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn--magnetic .btn__content {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}

/* ============================================
   Line Draw Animation
   ============================================ */
.line-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s var(--ease-out-expo);
}

.line-draw.is-visible {
  stroke-dashoffset: 0;
}

/* Process timeline line animation */
.process__steps::before {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.5s var(--ease-out-expo);
}

.process__steps.line-visible::before {
  transform: scaleX(1);
}

@media (max-width: 968px) {
  .process__steps::before {
    transform-origin: top;
    transform: scaleY(0);
  }

  .process__steps.line-visible::before {
    transform: scaleY(1);
  }
}

/* ============================================
   Image Reveal Animation
   ============================================ */
.reveal-image {
  position: relative;
  overflow: hidden;
}

.reveal-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-bg-alt);
  transform-origin: right;
  transition: transform 1s var(--ease-out-expo);
}

.reveal-image.is-visible::after {
  transform: scaleX(0);
}

.reveal-image img,
.reveal-image .crew-card__placeholder {
  transform: scale(1.2);
  transition: transform 1.2s var(--ease-out-expo);
}

.reveal-image.is-visible img,
.reveal-image.is-visible .crew-card__placeholder {
  transform: scale(1);
}

/* ============================================
   Stagger Animation Delays
   ============================================ */
[data-stagger] > *:nth-child(1) { --stagger-delay: 0s; }
[data-stagger] > *:nth-child(2) { --stagger-delay: 0.1s; }
[data-stagger] > *:nth-child(3) { --stagger-delay: 0.2s; }
[data-stagger] > *:nth-child(4) { --stagger-delay: 0.3s; }
[data-stagger] > *:nth-child(5) { --stagger-delay: 0.4s; }
[data-stagger] > *:nth-child(6) { --stagger-delay: 0.5s; }

[data-stagger] > * {
  transition-delay: var(--stagger-delay, 0s);
}

/* ============================================
   Hover Scale Effect
   ============================================ */
.hover-scale {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ============================================
   Underline Animation
   ============================================ */
.underline-animation {
  position: relative;
  display: inline-block;
}

.underline-animation::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   Marquee Animation
   ============================================ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee__content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee__content > * {
  padding: 0 2rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Pause on hover */
.marquee:hover .marquee__content {
  animation-play-state: paused;
}

/* ============================================
   Glow Effect on Hover
   ============================================ */
.glow-hover {
  transition: box-shadow var(--duration-normal) var(--ease-out-expo);
}

.glow-hover:hover {
  box-shadow: 0 0 40px rgba(184, 151, 122, 0.3);
}

/* ============================================
   3D Tilt Effect
   ============================================ */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out-expo);
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.tilt-card__content {
  transform: translateZ(30px);
}

/* ============================================
   Scroll Progress Bar
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================
   Blob Animation
   ============================================ */
@keyframes blob {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
  }
  75% {
    border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
  }
}

.blob {
  animation: blob 8s ease-in-out infinite;
}

/* ============================================
   Shake Animation (for errors/attention)
   ============================================ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* ============================================
   Pulse Animation
   ============================================ */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   Number Counter Animation
   ============================================ */
.stat__number {
  transition: transform 0.3s var(--ease-out-expo);
}

.stat:hover .stat__number {
  transform: scale(1.1);
}

/* ============================================
   Card Lift Animation
   ============================================ */
.card-lift {
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.card-lift:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   Testimonial Card Enhancements
   ============================================ */
.testimonial-card {
  transform-origin: center;
}

.testimonial-card:hover .testimonial-card__icon {
  opacity: 0.8;
  transform: scale(1.1);
}

.testimonial-card__icon {
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}

/* ============================================
   Crew Card Image Zoom
   ============================================ */
.crew-card__image {
  overflow: hidden;
}

.crew-card:hover .crew-card__placeholder {
  transform: scale(1.1);
}

.crew-card__placeholder {
  transition: transform 0.6s var(--ease-out-expo);
}

/* ============================================
   Hero Content Entrance
   ============================================ */
.hero__tagline,
.hero__description,
.hero__buttons {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* Hero title is handled by text split animation, but needs base visibility */
.hero__title {
  opacity: 1;
}

/* Show hero content after page load */
body:not(.loading) .hero__tagline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

body:not(.loading) .hero__description {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.2s;
}

body:not(.loading) .hero__buttons {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.4s;
}

/* ============================================
   Smooth Image Loading
   ============================================ */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded,
img[src] {
  opacity: 1;
}

/* Logo always visible */
.nav__logo-img,
.footer__logo-img,
.preloader__logo {
  opacity: 1;
}

/* ============================================
   Title Reveal Animation
   ============================================ */
.title-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.title-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated underline for section titles */
.title-reveal::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  margin-top: 0.5em;
  transition: width 0.8s var(--ease-out-expo) 0.3s;
}

.title-reveal.is-visible::after {
  width: 100%;
}

/* Centered titles get centered underline */
.section__title--center.title-reveal::after,
.cta__title.title-reveal::after {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Enhanced Character Animation
   ============================================ */
.hero__title-line {
  display: block;
  opacity: 1;
}

/* Disable the text split animation - it causes layout issues */
.split-text .char {
  display: inline;
  opacity: 1;
  transform: none;
}

/* ============================================
   Smooth Entrance for Cards
   ============================================ */
.service-card,
.testimonial-card,
.crew-card {
  opacity: 0;
  transform: translateY(30px);
}

.service-card.is-visible,
.testimonial-card.is-visible,
.crew-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Hover Ripple Effect
   ============================================ */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-out-expo), height 0.6s var(--ease-out-expo);
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* ============================================
   Smooth Focus States
   ============================================ */
.btn:focus-visible,
.nav__link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ============================================
   Loading Shimmer Effect
   ============================================ */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.loading-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-bg-warm) 0%,
    var(--color-accent-light) 50%,
    var(--color-bg-warm) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ============================================
   ENHANCED MOBILE RESPONSIVENESS
   Comprehensive fixes for all screen sizes
   Based on top common screen resolutions
   ============================================ */

/* ===========================================
   MOBILE DEVICES - PORTRAIT
   =========================================== */

/* Older/Smaller Smartphones (320x480) */
@media (max-width: 320px) {
  :root {
    --container-padding: 0.75rem;
  }

  body {
    font-size: 0.9375rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  .nav {
    padding: 0 var(--space-3);
    height: 60px;
  }

  .nav__logo-img {
    height: 50px;
  }

  .hero__title {
    font-size: 1.5rem;
    white-space: normal;
    line-height: 1.2;
  }

  .hero__description {
    font-size: 0.9375rem;
  }

  .hero__tagline {
    font-size: 0.625rem;
  }

  .hero__tagline::before,
  .hero__tagline::after {
    width: 10px;
  }

  .hero__content {
    padding: var(--space-6) var(--space-3);
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
    gap: var(--space-3);
  }

  .hero__buttons .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.625rem;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.625rem;
  }

  .stats-bar {
    padding: var(--space-8) 0;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .stat__number {
    font-size: 1.75rem;
  }

  .stat__label {
    font-size: 0.5rem;
  }

  .section {
    padding: var(--space-8) 0;
  }

  .page-header {
    padding: var(--space-8) 0;
  }

  .page-header__title {
    font-size: 1.5rem;
  }

  .page-header__subtitle {
    font-size: 0.9375rem;
  }

  .photo-collage {
    height: 200px;
  }

  .photo-collage--join {
    height: 180px;
  }

  .pattern-overlay {
    display: none;
  }

  .crew__grid {
    gap: var(--space-2);
  }

  .crew-card__name {
    font-size: 0.875rem;
  }

  .crew-card__role {
    font-size: 0.5625rem;
  }

  .service-card {
    padding: var(--space-4) var(--space-3);
  }

  .service-card__title {
    font-size: 1.125rem;
  }

  .service-card__text {
    font-size: 0.9375rem;
  }

  .testimonial-card {
    padding: var(--space-4);
  }

  .testimonial-card__quote blockquote {
    font-size: 0.9375rem;
  }

  .process__steps {
    padding-left: var(--space-10);
  }

  .process-step__number {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
    left: calc(-1 * var(--space-10));
  }

  .process-step__title {
    font-size: 1rem;
  }

  .process-step__desc {
    font-size: 0.875rem;
  }

  .footer__content {
    gap: var(--space-4);
  }

  .footer__logo-img {
    max-width: 120px;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .footer__link {
    font-size: 0.75rem;
  }

  .cta__title {
    font-size: 1.25rem;
  }

  .cta__text {
    font-size: 0.9375rem;
  }
}

/* Low-end Smartphones (360x640) */
@media (min-width: 321px) and (max-width: 360px) {
  :root {
    --container-padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .nav {
    height: 65px;
  }

  .nav__logo-img {
    height: 55px;
  }

  .hero__title {
    font-size: 1.625rem;
    white-space: normal;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .stat__number {
    font-size: 1.875rem;
  }

  .photo-collage {
    height: 230px;
  }
}

/* iPhone X/11/12/13 Mini & Similar (375x812) */
@media (min-width: 361px) and (max-width: 375px) {
  :root {
    --container-padding: 1rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .nav {
    height: 70px;
  }

  .nav__logo-img {
    height: 60px;
  }

  .hero__title {
    font-size: 1.75rem;
    white-space: normal;
    line-height: 1.2;
  }

  .hero__description {
    font-size: 1rem;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .stat__number {
    font-size: 2rem;
  }

  .stat__label {
    font-size: 0.5625rem;
  }

  .photo-collage {
    height: 250px;
  }

  .pattern-overlay {
    opacity: 0.06;
  }
}

/* iPhone 14 Pro & Similar (390x844) */
@media (min-width: 376px) and (max-width: 390px) {
  :root {
    --container-padding: 1.125rem;
  }

  h1 {
    font-size: 2rem;
  }

  .hero__title {
    font-size: 1.875rem;
    white-space: normal;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
  }

  .photo-collage {
    height: 260px;
  }
}

/* Mid-range Android (412x915) & iPhone 11/XR (414x896) */
@media (min-width: 391px) and (max-width: 414px) {
  :root {
    --container-padding: 1.25rem;
  }

  h1 {
    font-size: 2.125rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  .hero__title {
    font-size: 2rem;
    white-space: normal;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat__number {
    font-size: 2.25rem;
  }

  .photo-collage {
    height: 280px;
  }
}

/* Larger Phones (415px - 480px) */
@media (min-width: 415px) and (max-width: 480px) {
  :root {
    --container-padding: 1.25rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero__title {
    font-size: 2.125rem;
    white-space: normal;
  }

  .hero__buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .hero__buttons .btn {
    flex: 1 1 auto;
    min-width: 150px;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-collage {
    height: 300px;
  }
}

/* ===========================================
   PHABLETS & SMALL TABLETS
   =========================================== */

/* Large Phones / Small Tablets (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
  :root {
    --container-padding: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero__title {
    font-size: 2.25rem;
    white-space: normal;
  }

  .hero__buttons {
    flex-direction: row;
    justify-content: center;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .stat__number {
    font-size: 2.5rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-collage {
    height: 350px;
  }
}

/* ===========================================
   TABLETS - PORTRAIT
   =========================================== */

/* Small Tablets (601px - 768px) - iPad Mini, etc. */
@media (min-width: 601px) and (max-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav {
    height: 80px;
  }

  .nav__logo-img {
    height: 70px;
  }

  .hero__title {
    font-size: 2.5rem;
    white-space: normal;
  }

  .hero__buttons {
    flex-direction: row;
    justify-content: center;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-collage {
    height: 400px;
  }
}

/* Tablets Portrait - 768x1024 (iPad) */
@media (min-width: 769px) and (max-width: 834px) {
  :root {
    --container-padding: 2.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__image {
    min-height: 45vh;
    order: -1;
  }

  .hero__content {
    text-align: center;
    align-items: center;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__buttons {
    justify-content: center;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about__content {
    text-align: center;
  }

  .about__content .rule-luxury {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===========================================
   TABLETS - LANDSCAPE & SMALL LAPTOPS
   =========================================== */

/* iPad Landscape & Similar (835px - 1024px) */
@media (min-width: 835px) and (max-width: 1024px) {
  :root {
    --container-padding: 2.5rem;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__content {
    padding: var(--space-12) var(--space-8);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .crew__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===========================================
   LAPTOPS & DESKTOPS
   =========================================== */

/* Small Laptops (1025px - 1280px) - 1024x768, 1280x720 */
@media (min-width: 1025px) and (max-width: 1280px) {
  :root {
    --container-padding: 2.5rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Standard Laptops (1281px - 1366px) - 1366x768 */
@media (min-width: 1281px) and (max-width: 1366px) {
  :root {
    --container-max: 1140px;
  }

  .hero__title {
    font-size: 3.25rem;
  }
}

/* Mid-range Laptops (1367px - 1440px) - 1440x900 */
@media (min-width: 1367px) and (max-width: 1440px) {
  :root {
    --container-max: 1200px;
  }

  .hero__title {
    font-size: 3.5rem;
  }
}

/* Laptops (1441px - 1536px) - 1536x864 */
@media (min-width: 1441px) and (max-width: 1536px) {
  :root {
    --container-max: 1280px;
  }

  .hero__title {
    font-size: 3.75rem;
  }
}

/* HD Laptops (1537px - 1600px) - 1600x900 */
@media (min-width: 1537px) and (max-width: 1600px) {
  :root {
    --container-max: 1320px;
  }
}

/* Full HD Displays (1601px - 1920px) - 1920x1080 */
@media (min-width: 1601px) and (max-width: 1920px) {
  :root {
    --container-max: 1400px;
  }

  .hero__title {
    font-size: 4rem;
  }

  .hero__content {
    padding: var(--space-20) var(--space-16);
  }
}

/* ===========================================
   HIGH RESOLUTION DISPLAYS
   =========================================== */

/* QHD Displays (1921px - 2560px) - 2560x1440 */
@media (min-width: 1921px) and (max-width: 2560px) {
  :root {
    --container-max: 1600px;
    --section-padding: clamp(5rem, 8vh, 8rem);
  }

  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: clamp(4rem, 5vw, 5.5rem);
  }

  h2 {
    font-size: clamp(2.5rem, 3vw, 3.5rem);
  }

  .hero__title {
    font-size: 4.5rem;
  }

  .nav {
    height: 100px;
  }

  .nav__logo-img {
    height: 90px;
  }

  .btn {
    padding: 1.25rem 3rem;
    font-size: 0.875rem;
  }
}

/* 4K UHD Displays (2561px+) - 3840x2160 */
@media (min-width: 2561px) {
  :root {
    --container-max: 2000px;
    --section-padding: clamp(6rem, 8vh, 10rem);
  }

  body {
    font-size: 1.375rem;
  }

  h1 {
    font-size: clamp(5rem, 5vw, 7rem);
  }

  h2 {
    font-size: clamp(3rem, 3vw, 4.5rem);
  }

  h3 {
    font-size: clamp(2rem, 2vw, 3rem);
  }

  .hero__title {
    font-size: 5.5rem;
  }

  .hero__description {
    font-size: 1.5rem;
  }

  .nav {
    height: 120px;
  }

  .nav__logo-img {
    height: 110px;
  }

  .nav__link {
    font-size: 1rem;
  }

  .btn {
    padding: 1.5rem 4rem;
    font-size: 1rem;
  }

  .stat__number {
    font-size: clamp(4rem, 5vw, 6rem);
  }

  .service-card {
    padding: var(--space-12) var(--space-8);
  }

  .service-card__title {
    font-size: 2rem;
  }

  .service-card__text {
    font-size: 1.25rem;
  }

  .testimonial-card {
    padding: var(--space-10);
  }

  .testimonial-card__quote blockquote {
    font-size: 1.375rem;
  }
}

/* ===========================================
   MOBILE NAVIGATION ENHANCEMENTS
   =========================================== */

@media (max-width: 768px) {
  /* Hero adjustments */
  .hero__image {
    min-height: 40vh;
  }

  /* About section */
  .about__content {
    text-align: center;
  }

  .about__content .rule-luxury {
    margin-left: auto;
    margin-right: auto;
  }

  /* Join info section */
  .join-info__grid {
    text-align: center;
  }

  .join-info__list {
    align-items: center;
  }

  .join-info__list li {
    text-align: left;
    max-width: 300px;
  }

  /* Stylist cards */
  .stylist-card__content {
    padding: var(--space-6);
  }

  .stylist-card__name {
    font-size: 1.5rem;
  }

  .stylist-card__bio {
    font-size: 1rem;
  }

  .stylist-card__actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .stylist-card__actions .btn {
    width: 100%;
  }

  .stylist-card__social {
    width: 100%;
    justify-content: center;
  }

  /* CTA section */
  .cta__title {
    font-size: 1.5rem;
  }

  .cta__text {
    font-size: 1rem;
  }

  /* Philosophy grid */
  .philosophy__item {
    padding: var(--space-6);
  }

  /* Footer adjustments */
  .footer__content {
    gap: var(--space-6);
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .footer__link {
    font-size: 0.875rem;
  }
}

/* ===========================================
   ORIENTATION & ASPECT RATIO HANDLING
   =========================================== */

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero__image {
    min-height: 300px;
  }

  .nav__menu {
    padding: var(--space-4) 0;
    gap: var(--space-4);
    overflow-y: auto;
  }

  .preloader {
    padding: var(--space-4);
  }

  .preloader__logo {
    max-width: 150px;
  }

  .preloader__tagline {
    font-size: 0.625rem;
  }

  .preloader__spinner {
    width: 20px;
    height: 20px;
  }
}

/* Tall Phone Screens (iPhone Pro Max, Samsung Galaxy, etc.) */
@media (min-aspect-ratio: 9/19) and (max-width: 500px) {
  .hero__image {
    min-height: 35vh;
  }

  .hero__content {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .section {
    padding: var(--space-10) 0;
  }
}

/* Ultra-wide Monitors (21:9) */
@media (min-aspect-ratio: 21/9) and (min-width: 1920px) {
  .hero {
    grid-template-columns: 1fr 1.2fr;
  }

  .hero__content {
    max-width: 800px;
  }

  :root {
    --container-max: min(1800px, 80vw);
  }
}

/* ===========================================
   TOUCH & INPUT DEVICE OPTIMIZATIONS
   =========================================== */

@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets (48px minimum per WCAG) */
  .btn {
    min-height: 48px;
    min-width: 48px;
  }

  .nav__link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav__toggle {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav__social-link,
  .footer__social-link,
  .crew-card__social,
  .stylist-card__social,
  .stylist-profile__social {
    min-width: 48px;
    min-height: 48px;
  }

  /* Remove hover effects that don't work on touch */
  .service-card:hover,
  .testimonial-card:hover,
  .crew-card:hover,
  .stylist-card:hover,
  .philosophy__item:hover,
  .photo-collage__item:hover {
    transform: none;
  }

  /* Active states for touch feedback */
  .btn:active {
    transform: scale(0.98);
  }

  .service-card:active,
  .testimonial-card:active,
  .crew-card:active {
    transform: scale(0.99);
  }
}

/* ===========================================
   HIGH DPI / RETINA DISPLAYS
   =========================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .rule-luxury {
    height: 0.5px;
  }

  .nav__toggle span {
    height: 0.5px;
  }
}

/* Super Retina (3x) Displays */
@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
  /* Ensure crisp rendering on 3x displays */
  .pattern-overlay img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ===========================================
   SAFE AREA INSETS (Notched Devices)
   =========================================== */

@supports (padding: max(0px)) {
  .header {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(var(--space-8), env(safe-area-inset-bottom));
  }

  .nav__menu {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
    padding-bottom: max(var(--space-8), env(safe-area-inset-bottom));
  }

  /* Full-width sections on notched devices */
  .hero,
  .page-header,
  .cta {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* ===========================================
   ACCESSIBILITY & USER PREFERENCES
   =========================================== */

/* Print Styles */
@media print {
  .nav,
  .footer,
  .preloader,
  .pattern-overlay,
  .grain-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
  }

  .section {
    page-break-inside: avoid;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* Prefers Reduced Data */
@media (prefers-reduced-data: reduce) {
  .pattern-overlay,
  .grain-overlay {
    display: none;
  }

  /* Use system fonts to reduce data */
  :root {
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: Georgia, 'Times New Roman', serif;
    --font-meta: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --color-text: #000;
    --color-bg: #fff;
    --color-primary: #000;
    --color-accent: #444;
  }

  .btn--primary {
    border: 2px solid #000;
  }

  .btn--secondary {
    border: 2px solid #000;
  }
}

/* ============================================
   Team Photo Section
   ============================================ */
.team-photo__wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.team-photo__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-lg);
}

.team-photo__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.team-photo__placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #E8DDD4 0%, #D4C4B5 50%, #C4B4A2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
}

.team-photo__placeholder::before {
  content: '';
  width: 100px;
  height: 60px;
  border: 2px solid currentColor;
  border-radius: var(--radius-sm);
  opacity: 0.2;
}

.team-photo__placeholder span {
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-elegant);
  opacity: 0.4;
}

.team-photo__caption p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Stylist Profile Section
   ============================================ */
.stylists-detail {
  background: var(--color-bg-alt);
}

.stylist-profile {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border);
}

.stylist-profile:first-child {
  padding-top: 0;
}

.stylist-profile:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stylist-profile--reverse {
  grid-template-columns: 1.5fr 1fr;
}

.stylist-profile--reverse .stylist-profile__image {
  order: 2;
}

.stylist-profile--reverse .stylist-profile__content {
  order: 1;
}

@media (max-width: 868px) {
  .stylist-profile,
  .stylist-profile--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .stylist-profile--reverse .stylist-profile__image,
  .stylist-profile--reverse .stylist-profile__content {
    order: unset;
  }
}

.stylist-profile__photo {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.stylist-profile__photo:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.stylist-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.stylist-profile__photo:hover img {
  transform: scale(1.03);
}

.stylist-profile__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #E8DDD4 0%, #D4C4B5 40%, #C4B4A2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
}

.stylist-profile__placeholder svg {
  opacity: 0.25;
}

.stylist-profile__content .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}

.stylist-profile__name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: var(--space-4);
}

.stylist-profile__content .rule-luxury {
  margin: var(--space-4) 0 var(--space-8);
}

@media (max-width: 868px) {
  .stylist-profile__content .rule-luxury {
    margin: var(--space-4) auto var(--space-8);
  }
}

.stylist-profile__bio {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
}

.stylist-profile__specialties {
  margin-bottom: var(--space-8);
}

.stylist-profile__specialties h4 {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-elegant);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.stylist-profile__specialties ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 868px) {
  .stylist-profile__specialties ul {
    justify-content: center;
  }
}

.stylist-profile__specialties li {
  font-family: var(--font-meta);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
}

.stylist-profile__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

@media (max-width: 868px) {
  .stylist-profile__actions {
    justify-content: center;
  }
}

.stylist-profile__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-fast) var(--ease-out-expo),
              background-color var(--duration-fast) var(--ease-out-expo);
}

.stylist-profile__social:hover {
  color: var(--color-bg);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================================
   Philosophy Section
   ============================================ */
.philosophy__content {
  text-align: center;
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  margin-top: var(--space-12);
}

@media (max-width: 768px) {
  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.philosophy__item {
  padding: var(--space-8);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.philosophy__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.philosophy__item h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.philosophy__item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}
