:root {
  --bg: #f3f4f6;
  /* gray-100 */
  --surface: #ffffff;
  --text: #0f172a;
  /* slate-900 */
  --muted: #475569;
  /* slate-600 */
  --primary: #3b82f6;
  /* blue-500 */
  --primary-ink: #ffffff;
  --stroke: #e5e7eb;
  --accent: #2563eb;
  /* blue-600 for focus outlines */
  --radius: 14px;
  /* Glass variables for cross-browser transparency */
  --glass-15: rgba(255, 255, 255, 0.15);
  --glass-08: rgba(255, 255, 255, 0.08);
  --glass-25: rgba(255, 255, 255, 0.25);
  --glass-50: rgba(255, 255, 255, 0.50);
  --glass-70: rgba(255, 255, 255, 0.70);
  --glass-80: rgba(255, 255, 255, 0.80);
  --stroke-alpha: rgba(229, 231, 235, 0.70);
  /* Layout */
  --header-h: 72px;

  /* Mobile-optimized properties */
  color-scheme: light;
}

/* Critical performance optimizations */
* {
  box-sizing: border-box;
  /* GPU acceleration for key elements */
}

*:before,
*:after {
  box-sizing: border-box;
}

/* Remove duplicate box-sizing rule (already in :root section) */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-display: swap;
  font-weight: 400;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
  height: auto;
  will-change: auto;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

/* Enhanced responsive design */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 96px 0;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .container {
    width: min(1000px, 94vw);
    padding: 0 16px;
  }

  .section {
    padding: 80px 0;
  }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  .container {
    width: min(100%, 96vw);
    padding: 0 20px;
  }

  .section {
    padding: 64px 0;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }
}

/* Small mobile devices */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .section {
    padding: 40px 0;
  }
}

.section-head {
  margin-bottom: 28px;
  text-align: center;
}

.section-head h2 {
  font-family: "Playfair Display", Georgia, Times, serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 40px);
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  inset-inline: 0;
  z-index: 9000;
  backdrop-filter: saturate(160%) blur(20px);
  background: var(--glass-08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.10rem 3vw;
  height: 72px;
  min-height: 72px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: background 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    backdrop-filter 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: background, backdrop-filter, box-shadow;
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 3vw;
    backdrop-filter: saturate(180%) blur(15px);
    background: var(--glass-15);
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 16px 20px;
    gap: 16px;
    height: 64px;
    min-height: 64px;
    backdrop-filter: saturate(200%) blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
  }

  /* Hide desktop navigation items completely on mobile */
  .site-header .nav {
    display: flex;
    align-items: center;
  }

  .site-header .nav-toggle {
    display: inline-flex;
  }
}

.logo {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(18px, 4vw, 22px);
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.2;
  padding: 8px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  width: 320px;
  min-width: 320px;
}

.logo img,
.logo .logo-img {
  height: calc(var(--header-h) - 12px);
  max-height: calc(var(--header-h) - 12px);
  width: auto;
  border-radius: 0;
  display: block;
  filter: none;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo {
    width: 260px;
    min-width: 260px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 180px;
    min-width: 180px;
  }

  .logo img,
  .logo .logo-img {
    height: auto;
    max-height: calc(var(--header-h) - 20px);
  }
}

.logo span {
  color: var(--primary);
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header color variants with enhanced blending */
.site-header.light-bg {
  background: rgba(243, 244, 246, 0.85);
  backdrop-filter: saturate(180%) blur(25px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.site-header.light-bg .logo {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(18px, 4vw, 22px);
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.2;
  padding: 8px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  width: 320px;
  min-width: 320px;
}

.site-header.light-bg .nav-menu a {
  color: var(--text);
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.light-bg .nav-menu a.cta {
  color: var(--text) !important;
  background: transparent !important;
  border: none !important;
}

.site-header.light-bg .nav-menu a.cta:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: var(--text) !important;
}

.site-header.light-bg .nav-toggle {
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo2 (dark logo shown when header is light) */
/* Exact width and min-width at desktop with aspect ratio preserved */
.site-header.light-bg .logo {
  width: 360px;
  min-width: 360px;
}

.site-header.light-bg .logo .logo-img {
  height: calc(var(--header-h) - 12px);
  max-height: calc(var(--header-h) - 12px);
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Responsive adjustments for Logo2 width */
@media (max-width: 768px) {
  .site-header.light-bg .logo {
    width: 260px;
    min-width: 260px;
  }
}

@media (max-width: 480px) {
  .site-header.light-bg .logo {
    width: 180px;
    min-width: 180px;
  }
}

/* Older browser fallback: if object-fit unsupported, constrain by max-height and auto width */
.site-header.light-bg .logo .logo-img {
  max-width: 100%;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.8);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Hide close button on desktop */
.nav-close-item {
  display: none;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: 10px;
  display: inline-block;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: background, border-color;
}

.nav-menu a:hover {
  background: var(--glass-50);
  border-color: var(--stroke);
}

.nav-menu a.cta {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 700;
  border: none !important;
}

.nav-menu a.cta:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.nav-menu a.highlight {
  background: transparent;
  color: #ffffff;
  border: none;
}

.nav-menu a.highlight:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-menu a.cta:hover {
  filter: brightness(0.95);
}

.nav-menu a.active {
  outline: 2px solid rgba(255, 255, 255, 0.6);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex !important;
  }

  /* Clean fullscreen mobile menu */
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    backdrop-filter: none !important;
  }

  .nav-menu.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
  }

  .nav-menu::before {
    display: none !important;
  }

  .nav-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Close button */
  .nav-close-item {
    display: block !important;
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
  }

  .nav-close {
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    padding: 10px !important;
    line-height: 1 !important;
    transition: color 0.2s ease;
    width: auto !important;
    height: auto !important;
  }

  .nav-close:hover {
    color: #666666 !important;
  }

  .nav-menu a {
    display: block !important;
    padding: 20px 40px !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    text-align: center !important;
    transition: color 0.2s ease;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: none !important;
    min-height: auto !important;
  }

  .nav-menu a:hover {
    color: #666666 !important;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .nav-menu a.cta {
    color: #1a1a1a !important;
    background: none !important;
    font-weight: 400 !important;
    font-size: 24px !important;
    padding: 20px 40px !important;
    box-shadow: none !important;
    border: none !important;
    margin-top: 0 !important;
    text-transform: none !important;
  }

  .nav-menu a.cta:hover {
    color: #666666 !important;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

@media (max-width: 480px) {
  .nav-toggle {
    padding: 10px 14px;
    font-size: 14px;
    min-height: 44px;
    min-width: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    position: relative;
  }

  /* Clean fullscreen mobile menu - 480px */
  .nav-menu a {
    font-size: 20px !important;
    padding: 18px 32px !important;
  }

  .nav-close-item {
    top: 16px !important;
    right: 16px !important;
  }

  .nav-close {
    font-size: 24px !important;
  }

  .nav-menu a.cta {
    font-size: 20px !important;
    padding: 18px 32px !important;
  }
}

/* Hero section responsive design */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(95vh, 950px);
  padding-top: calc(32px + var(--header-h));
  margin-top: calc(-1 * var(--header-h));
}

/* Tablet hero adjustments */
@media (max-width: 1024px) {
  .hero {
    min-height: min(93vh, 850px);
    padding-top: calc(28px + var(--header-h));
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .hero {
    min-height: min(97vh, 750px);
    padding-top: calc(24px + var(--header-h));
    padding-bottom: 20px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    padding-top: calc(20px + var(--header-h));
    padding-bottom: 32px;
    display: flex;
    align-items: center;
  }
}

/* Small screens */
@media (max-width: 360px) {
  .hero {
    min-height: 100vh;
    padding-top: calc(16px + var(--header-h));
    padding-bottom: 24px;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000;
  height: 100vh;
}

/* Mobile-optimized background */
@media (max-width: 768px) {
  .hero-media {
    background-position: center 20%;
  }

  .hero-media .hero-fallback-img,
  .hero-media video.hero-video {
    object-position: center 20%;
  }
}

@media (max-width: 480px) {
  .hero-media {
    background-position: center 25%;
  }

  .hero-media .hero-fallback-img {
    object-position: center 25%;
    filter: saturate(115%) contrast(115%) brightness(1.2);
  }

  .hero-media video.hero-video {
    object-position: center 25%;
  }
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease;
  filter: saturate(105%) contrast(102%);
  opacity: 1;
}

.hero-media video.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(105%) contrast(102%);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity;
  background: #000;
}

.hero-media video.hero-video.active {
  opacity: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
}

/* Lighter overlay for mobile */
@media (max-width: 768px) {
  .hero-media::after {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.4) 100%);
  }
}

@media (max-width: 480px) {
  .hero-media::after {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.25) 100%);
  }
}

/* Enhanced video and fallback system */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000;
}

.hero-media video.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity;
}

.hero-media video.hero-video.active {
  opacity: 1;
}

.hero-media.video-active .hero-fallback-img {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-media .hero-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.8s ease;
  z-index: 1;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
  .hero-media .hero-fallback-img {
    object-position: center 20%;
    filter: saturate(110%) contrast(110%) brightness(1.1);
  }

  .hero-media.mobile-fallback-active .hero-fallback-img {
    opacity: 1 !important;
    z-index: 2;
  }
}

.hero-content {
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Responsive hero content */
@media (max-width: 1024px) {
  .hero-content {
    padding: 44px 28px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 40px 24px;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 20px;
    gap: 36px;
    justify-content: center;
    min-height: auto;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero-content {
    padding: 0 16px;
    gap: 32px;
  }
}

.headline {
  font-family: "Playfair Display", Georgia, Times, serif;
  font-weight: 800;
  font-size: clamp(28px, 7vw, 64px);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.4);
  color: #fff;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

@media (min-width: 1024px) and (max-width: 1440px) {
  .headline {
    font-size: clamp(28px, 5.2vw, 58px);
    line-height: 1.12;
  }
}

@media (min-width: 1441px) and (max-width: 1920px) {
  .headline {
    font-size: clamp(28px, 4.2vw, 64px);
    line-height: 1.12;
  }
}

/* Responsive typography */
@media (max-width: 768px) {
  .headline {
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.15;
    margin: 0 0 20px;
  }
}

@media (max-width: 480px) {
  .headline {
    font-size: clamp(28px, 8.5vw, 44px);
    line-height: 1.15;
    margin: 0 0 20px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), 0 8px 24px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .headline {
    font-size: clamp(26px, 9vw, 38px);
    line-height: 1.2;
    margin: 0 0 16px;
  }
}

.subhead {
  font-size: clamp(15px, 2.5vw, 20px);
  color: #ffffff;
  margin: 0 0 32px;
  max-width: 52ch;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  line-height: 1.5;
  word-break: break-word;
}

/* Responsive subheading */
@media (max-width: 768px) {
  .subhead {
    font-size: clamp(16px, 4vw, 19px);
    line-height: 1.6;
    margin: 0 0 36px;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .subhead {
    font-size: clamp(15px, 4.5vw, 18px);
    line-height: 1.6;
    margin: 0 0 40px;
    max-width: 95%;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
    text-align: center;
    font-weight: 400;
  }
}

@media (max-width: 360px) {
  .subhead {
    font-size: clamp(14px, 5vw, 16px);
    line-height: 1.7;
    margin: 0 0 32px;
  }
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 340px;
    margin-bottom: 48px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
    padding: 20px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: none;
    letter-spacing: 0.5px;
    font-family: 'Cormorant Garamond', serif;
  }

  .hero-cta .btn.primary {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.95);
  }

  .hero-cta .btn:hover {
    background: rgba(255, 255, 255, 0.98);
    color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.98);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  }

  .hero-cta .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
}

/* Hero section button styling */
.hero .btn {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(15px);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 16px 32px;
  min-height: 52px;
}

.hero .btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero .btn.primary {
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.9);
}

.hero .btn.primary:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.8);
}

.hero .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

/* Portfolio slide-in images (more precise) */
#portfolio .masonry img {
  opacity: 0;
  transform: translateX(-12px);
  transition: transform .3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity .3s ease;
  will-change: transform, opacity;
}

#portfolio .masonry img.reveal-in {
  opacity: 1;
  transform: none;
}

.portfolio-note {
  color: var(--muted);
}

/* Portfolio hover description for first tile */
#portfolio .masonry .with-desc {
  display: flex;
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--stroke);
  aspect-ratio: 3 / 2;
}

#portfolio .masonry .with-desc .img-wrap {
  flex: 1 1 auto;
  overflow: hidden;
  border-radius: 12px;
  min-width: 0;
}

#portfolio .masonry .with-desc .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
  border-radius: 12px;
  will-change: transform;
  display: block;
  transform: none;
}

#portfolio .masonry .with-desc .desc {
  flex: 0 0 0;
  flex-basis: 0;
  width: 0;
  max-width: 0;
  min-width: 0;
  opacity: 0;
  padding: 0;
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  backdrop-filter: saturate(140%) blur(6px);
  border-left: 0 solid transparent;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  transition: all .4s cubic-bezier(.25, .46, .45, .94);
}

#portfolio .masonry .with-desc .img-wrap:hover img {
  transform: none;
}

#portfolio .masonry .with-desc .img-wrap:hover img.reveal-in {
  transform: none !important;
}

#portfolio .masonry .with-desc .img-wrap:hover+.desc,
#portfolio .masonry .with-desc .desc:hover {
  flex-basis: 42%;
  width: 42%;
  max-width: 42%;
  opacity: 1;
  padding: 16px;
  border-left-width: 0;
  pointer-events: auto;
}

#portfolio .masonry .with-desc .desc h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

#portfolio .masonry .with-desc .desc p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  #portfolio .masonry .with-desc {
    aspect-ratio: 4 / 3;
  }

  #portfolio .masonry .with-desc .img-wrap:hover+.desc,
  #portfolio .masonry .with-desc .desc:hover {
    flex-basis: 60%;
    width: 60%;
    max-width: 60%;
    border-left-width: 0;
  }
}

@media (max-width: 480px) {
  #portfolio .masonry .with-desc {
    aspect-ratio: 1 / 1;
  }

  #portfolio .masonry .with-desc .img-wrap:hover+.desc,
  #portfolio .masonry .with-desc .desc:hover {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 0 0 12px 12px;
  }

  #portfolio .masonry .with-desc .desc h4 {
    color: white;
  }

  #portfolio .masonry .with-desc .desc p {
    color: #e5e7eb;
  }
}

/* Remove extra inner animation to keep a single hover effect */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 140px;
  flex: 1;
}

.hero-stats div:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats strong {
  font-size: 28px;
  display: block;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.hero-stats span {
  display: block;
  width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 10px;
    max-width: 100%;
  }

  .hero-stats div {
    min-width: 120px;
    padding: 14px 16px;
  }

  .hero-stats strong {
    font-size: 24px;
  }

  .hero-stats span {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 8px;
    justify-content: center;
  }

  .hero-stats div {
    min-width: 90px;
    padding: 12px 10px;
    flex: 1 1 auto;
  }

  .hero-stats strong {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .hero-stats span {
    font-size: 9px;
    line-height: 1.2;
  }
}

/* Buttons */
/* Luxury Tailoring Button Styles */
.btn {
  --pad-x: 40px;
  --pad-y: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
  padding: var(--pad-y) var(--pad-x);
  border: 2px solid #1a1a1a;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.3px;
  color: #1a1a1a;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, background, color;
  position: relative;
  overflow: hidden;
  min-height: 56px;
  backdrop-filter: blur(10px);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn:hover {
  color: #ffffff;
  border-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 26, 26, 0.15);
}

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

.btn.primary {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.btn.primary:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(26, 26, 26, 0.25);
}

.btn.primary::before {
  background: #2a2a2a;
}

.btn.secondary {
  background: transparent;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
}

.btn.secondary:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.btn.accent {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
}

.btn.accent:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 60px rgba(212, 175, 55, 0.25);
}

/* Minimal button style for sophisticated look */
.btn.minimal {
  background: transparent;
  color: var(--text);
  border: none;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 400;
  min-height: auto;
}

.btn.minimal:hover {
  border-bottom-color: var(--primary);
  transform: translateY(0);
  box-shadow: none;
  background: transparent;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: color-mix(in oklab, var(--stroke) 70%, transparent);
}

.btn.ghost:hover {
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}

/* Subtle sheen animation for primary buttons */
.btn.primary {
  position: relative;
  overflow: hidden;
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .35) 45%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, .35) 55%, transparent 100%);
  transform: translateX(-160%);
}

.btn.primary:hover::after {
  animation: btn-sheen .6s ease;
}

@keyframes btn-sheen {
  to {
    transform: translateX(160%);
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 4;
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: box-shadow .15s ease;
}

.card:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .card {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .card {
    grid-column: span 12;
  }
}

/* Innovative Portfolio Grid with Award-Winning Animations */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  perspective: 1000px;
}

.portfolio-btn {
  margin-top: 32px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
  z-index: 5;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 12px;
  padding: 8px 16px;
  min-height: 32px;
}

/* Enhanced Portfolio Items */
.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform, filter;
  background: var(--bg);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
}

/* Magnetic Hover Effect */
.portfolio-item:hover {
  transform: translateY(-12px) rotateX(5deg) rotateY(2deg);
  box-shadow: var(--shadow-strong);
  z-index: 10;
}

/* Image Enhancement with Parallax */
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transform: scale(1);
  filter: brightness(0.95) contrast(1.05);
}

@media (min-width: 1024px) {
  #portfolio .portfolio-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 28px;
  }

  #portfolio .portfolio-item {
    aspect-ratio: auto;
    height: 360px;
  }

  #portfolio .portfolio-item {
    grid-row: auto !important;
  }

  #portfolio .portfolio-item:nth-child(1) {
    grid-column: span 6;
    aspect-ratio: auto !important;
  }

  #portfolio .portfolio-item:nth-child(2) {
    grid-column: span 3;
    aspect-ratio: auto !important;
  }

  #portfolio .portfolio-item:nth-child(3) {
    grid-column: span 3;
    aspect-ratio: auto !important;
  }

  #portfolio .portfolio-item:nth-child(4) {
    grid-column: span 4;
    aspect-ratio: auto !important;
  }

  #portfolio .portfolio-item:nth-child(5) {
    grid-column: span 4;
    aspect-ratio: auto !important;
  }

  #portfolio .portfolio-item:nth-child(6) {
    grid-column: span 4;
    aspect-ratio: auto !important;
  }

  #portfolio .portfolio-item img {
    height: 100%;
  }

  #portfolio .portfolio-item:nth-child(1) img {
    object-position: center 20%;
  }

  #portfolio .portfolio-item:nth-child(5) img {
    object-position: center 20%;
  }

  #portfolio .portfolio-item:nth-child(5) .portfolio-overlay {
    align-items: flex-end;
    padding-bottom: 24px;
  }
}

.portfolio-item:hover img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.1) saturate(1.2);
}

/* Fabric Texture Overlay Animation */
.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(212, 175, 55, 0.1) 20%,
      rgba(212, 175, 55, 0.2) 40%,
      rgba(212, 175, 55, 0.1) 60%,
      transparent 100%);
  z-index: 2;
  transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
}

.portfolio-item:hover::before {
  left: 100%;
  opacity: 1;
}

/* Fixed Portfolio Overlay System */
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 4;
}

/* Content Animation */
.portfolio-content {
  text-align: left;
  color: white;
  padding: 30px;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.portfolio-item:hover .portfolio-content h4,
.portfolio-item.portfolio-active .portfolio-content h4 {
  color: #ffffff;
}

.portfolio-content p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.portfolio-content .btn.small {
  font-size: 12px;
  padding: 8px 16px;
  min-height: 32px;
  margin-top: 8px;
}

/* Refined overlay states with priority system */
.portfolio-item:hover .portfolio-overlay,
.portfolio-item.portfolio-hover .portfolio-overlay,
.portfolio-item.portfolio-active .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-content,
.portfolio-item.portfolio-hover .portfolio-content,
.portfolio-item.portfolio-active .portfolio-content {
  transform: translateY(0);
}

/* Active state takes priority over hover */
.portfolio-item.portfolio-active:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item.portfolio-active:hover .portfolio-content {
  transform: translateY(0);
}

/* Smooth state transitions */
.portfolio-item.portfolio-active {
  transform: translateY(-12px) rotateX(5deg) rotateY(2deg);
  box-shadow: var(--shadow-strong);
  z-index: 10;
}

.portfolio-item.portfolio-hover {
  transform: translateY(-8px) rotateX(3deg) rotateY(1deg);
  box-shadow: var(--shadow-medium);
  z-index: 5;
}

/* Staggered Animation for Grid Items */
.portfolio-item:nth-child(1) {
  animation-delay: 0s;
}

.portfolio-item:nth-child(2) {
  animation-delay: 0.1s;
}

.portfolio-item:nth-child(3) {
  animation-delay: 0.2s;
}

.portfolio-item:nth-child(4) {
  animation-delay: 0.3s;
}

.portfolio-item:nth-child(5) {
  animation-delay: 0.4s;
}

.portfolio-item:nth-child(6) {
  animation-delay: 0.5s;
}

/* Reveal Animation */
@keyframes portfolioReveal {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.portfolio-item[data-reveal] {
  opacity: 0;
  transform: translateY(40px) rotateX(10deg);
}

.portfolio-item[data-reveal].reveal-in {
  animation: portfolioReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Responsive Adaptations */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 48px;
  }

  .portfolio-item img {
    height: 100%;
  }

  .portfolio-item:hover {
    transform: translateY(-8px) rotateX(2deg);
  }

  .portfolio-overlay {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  .portfolio-item img {
    height: 200px;
  }

  .portfolio-item:hover {
    transform: translateY(-6px);
  }

  /* Match gallery proportions on small screens */
  .portfolio-grid .portfolio-item {
    aspect-ratio: 4/3;
  }

  .portfolio-grid .portfolio-item img {
    height: 100% !important;
  }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  will-change: transform, box-shadow;
}

.portfolio-item:nth-child(1) {
  grid-row: span 12;
}

.portfolio-item:nth-child(2) {
  grid-row: span 18;
}

.portfolio-item:nth-child(3) {
  grid-row: span 14;
}

.portfolio-item:nth-child(4) {
  grid-row: span 16;
}

.portfolio-item:nth-child(5) {
  grid-row: span 14;
}

.portfolio-item:nth-child(6) {
  grid-row: span 15;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Gallery Page Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.gallery-overlay p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .gallery-overlay {
    padding: 16px;
  }

  .gallery-overlay h4 {
    font-size: 16px;
  }

  .gallery-overlay p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 425px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }

  .portfolio-item {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .portfolio-item img {
    height: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }

  .gallery-item {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 4/3;
  }

  .gallery-item img {
    height: auto;
  }
}

@media (max-width: 375px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .portfolio-item,
  .gallery-item {
    max-width: 340px;
  }
}

@media (max-width: 320px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portfolio-item,
  .gallery-item {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Remove duplicate portfolio styles - already defined above */


@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
  }

  .portfolio-item img {
    height: 240px;
  }

  .portfolio-item:hover {
    transform: translateY(-8px) rotateX(2deg);
  }

  .portfolio-overlay {
    padding: 20px;
  }

  .portfolio-content {
    padding: 20px;
  }

  .portfolio-content h4 {
    font-size: 20px;
  }

  .portfolio-content p {
    font-size: 13px;
  }


  .portfolio-item:nth-child(1) {
    grid-row: span 10;
  }

  .portfolio-item:nth-child(2) {
    grid-row: span 14;
  }

  .portfolio-item:nth-child(3) {
    grid-row: span 12;
  }

  .portfolio-item:nth-child(4) {
    grid-row: span 13;
  }

  .portfolio-item:nth-child(5) {
    grid-row: span 9;
  }

  .portfolio-item:nth-child(6) {
    grid-row: span 11;
  }

  .portfolio-content {
    padding: 20px;
  }

  .portfolio-content h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portfolio-item:nth-child(1) {
    grid-row: span 8;
  }

  .portfolio-item:nth-child(2) {
    grid-row: span 12;
  }

  .portfolio-item:nth-child(3) {
    grid-row: span 10;
  }

  .portfolio-item:nth-child(4) {
    grid-row: span 11;
  }

  .portfolio-item:nth-child(5) {
    grid-row: span 7;
  }

  .portfolio-item:nth-child(6) {
    grid-row: span 9;
  }

  .portfolio-content {
    padding: 16px;
  }
}

/* Process Section Background */
#process {
  position: relative;
  padding: 0;
  min-height: 400vh;
  /* Enough space to scroll through all 4 steps */
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  /* Override container width */
  width: 100% !important;
  max-width: 100% !important;
}

/* Section header - sticky at top, above card */
#process .section-head {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, #f8fafc 0%, #f8fafc 85%, transparent 100%);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

#process .section-head h2 {
  margin-bottom: 16px;
}

#process .section-head p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

/* Steps - Sticky Card Container */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  position: sticky;
  top: calc(var(--header-h) + 180px);
  height: calc(100vh - var(--header-h) - 200px);
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 10;
}

/* Each step item - positioned within sticky container */
.step-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 90vw;
  max-width: 800px;
  max-height: calc(100vh - var(--header-h) - 220px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  display: none;
  z-index: 1;
}

.step-item.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Subtle scrollbar for step items */
.step-item::-webkit-scrollbar {
  width: 6px;
}

.step-item::-webkit-scrollbar-track {
  background: transparent;
}

.step-item::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.2);
  border-radius: 3px;
}

.step-item::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.4);
}

.steps li {
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 24px;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: visible;
}

.steps li>* {
  position: relative;
  z-index: 2;
  color: var(--text);
}


.steps li:hover {
  box-shadow: 0 25px 70px rgba(59, 130, 246, 0.18),
    0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}


.steps .step {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
  position: relative;
  flex-shrink: 0;
  margin: 0 auto 10px;
}

.steps li:nth-child(1) .step {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.steps li:nth-child(2) .step {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.steps li:nth-child(3) .step {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.steps li:nth-child(4) .step {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.steps h3 {
  margin: 0;
  font-size: 24px;
  text-align: center;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}

.steps p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  font-size: 16px;
}

@keyframes gradient-shift {

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

  50% {
    background-position: 100% 50%;
  }
}

/* Philosophy Section Styling */
#philosophy .content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

#philosophy .content p {
  text-align: justify;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 17px;
  color: var(--muted);
}

#philosophy .content p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Philosophy section mobile */
  #philosophy .section-head h2 {
    font-size: 28px;
  }
  
  #philosophy .content {
    padding: 0 24px;
  }
  
  #philosophy .content p {
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
  }

  /* Process section mobile */
  #process {
    min-height: 350vh;
  }

  #process .section-head {
    top: var(--header-h);
    padding: 30px 20px 15px;
    max-width: 100%;
  }
  
  #process .section-head h2 {
    font-size: 26px;
  }
  
  #process .section-head p {
    font-size: 16px;
  }

  .steps {
    top: calc(var(--header-h) + 110px);
    height: calc(100vh - var(--header-h) - 140px);
  }

  .step-item {
    width: 92vw;
    max-width: 92vw;
    max-height: calc(100vh - var(--header-h) - 160px);
  }

  .steps li {
    padding: 28px 24px;
  }

  .steps .step {
    width: 52px;
    height: 52px;
    font-size: 18px;
    margin: 0 auto 8px;
  }

  .steps h3 {
    font-size: 19px;
  }

  .steps p {
    font-size: 15px;
    line-height: 1.65;
  }
}

@media (max-width: 480px) {
  /* Philosophy section small mobile */
  #philosophy .section-head h2 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  #philosophy .section-head p {
    font-size: 15px;
  }
  
  #philosophy .content {
    padding: 0 20px;
  }
  
  #philosophy .content p {
    font-size: 15px;
    line-height: 1.65;
  }

  /* Process section small mobile */
  #process {
    min-height: 380vh;
  }

  #process .section-head {
    top: var(--header-h);
    padding: 20px 16px 12px;
  }
  
  #process .section-head h2 {
    font-size: 22px;
  }
  
  #process .section-head p {
    font-size: 14px;
  }

  .steps {
    top: calc(var(--header-h) + 95px);
    height: calc(100vh - var(--header-h) - 120px);
  }

  .step-item {
    width: 94vw;
    max-width: 94vw;
    max-height: calc(100vh - var(--header-h) - 140px);
  }

  .steps li {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .steps .step {
    width: 46px;
    height: 46px;
    font-size: 17px;
    border-radius: 14px;
    margin: 0 auto 6px;
  }

  .steps h3 {
    font-size: 17px;
    line-height: 1.3;
  }

  .steps p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Google Reviews Styling */
.google-reviews-container {
  max-width: 900px;
  margin: 40px auto 0;
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--stroke);
}

/* Google Reviews Container Animation */
.google-reviews-container[data-reveal] {
  opacity: 0;
  transform: translateX(-80px) scale(0.95);
  filter: blur(4px);
}

.google-reviews-container.reveal-in {
  opacity: 1 !important;
  transform: translateX(0) scale(1) !important;
  filter: none !important;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
    filter 0.6s ease 0.2s;
}

.google-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--stroke);
}

.google-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.google-rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #fbbf24;
  font-size: 20px;
}

.rating-text {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.google-review {
  background: color-mix(in oklab, var(--surface) 98%, transparent);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, box-shadow;
}

/* Individual Google Review Slide Animations */
.google-review[data-reveal] {
  opacity: 0;
  transform: translateX(-60px) rotateY(5deg);
  filter: blur(3px);
}

.google-review.reveal-in {
  opacity: 1 !important;
  transform: translateX(0) rotateY(0) !important;
  filter: none !important;
}

.google-review:nth-child(1).reveal-in {
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
    filter 0.5s ease 0.3s;
}

.google-review:nth-child(2).reveal-in {
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s,
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s,
    filter 0.5s ease 0.4s;
}

.google-review:nth-child(3).reveal-in {
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s,
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s,
    filter 0.5s ease 0.5s;
}

.google-review:nth-child(4).reveal-in {
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s,
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s,
    filter 0.5s ease 0.6s;
}

.google-review:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: color-mix(in oklab, var(--primary) 30%, var(--stroke));
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 80%, #8b5cf6));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.reviewer-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.review-stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 1px;
}

.review-text {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 16px 0;
  font-style: italic;
}

.review-date {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.google-reviews-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
}

.google-reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.google-reviews-link:hover {
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .google-reviews-container {
    padding: 24px;
    margin-top: 32px;
  }

  .google-reviews-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

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

  .google-review {
    padding: 20px;
  }

  .reviewer-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .google-reviews-container {
    padding: 20px;
    margin-top: 24px;
  }

  .google-reviews-grid {
    gap: 16px;
  }

  .google-review {
    padding: 16px;
  }

  .review-text {
    font-size: 15px;
  }

  .google-logo {
    font-size: 16px;
  }
}

/* FAQ */
.accordion details {
  background: color-mix(in oklab, var(--surface) 98%, transparent);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 10px 0;
}

.accordion summary {
  cursor: pointer;
  font-weight: 700;
}

.accordion p {
  color: var(--muted);
  margin: 10px 0 0;
}

#faq .accordion {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

#faq .accordion details {
  width: 100%;
  max-width: 800px;
}

/* Contact */
.contact .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.contact label {
  grid-column: span 6;
  display: grid;
  gap: 8px;
}

.contact label.full {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .contact .grid {
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact label {
    grid-column: span 12;
  }
}

@media (max-width: 480px) {
  .contact .grid {
    gap: 8px;
    max-width: 350px;
    margin: 0 auto;
  }

  .contact input,
  .contact textarea,
  .contact select {
    padding: 8px 10px;
    font-size: 16px;
    height: 44px;
  }

  .contact textarea {
    height: auto;
    min-height: 80px;
  }

  .contact label span {
    font-size: 13px;
    margin-bottom: 2px;
    display: block;
  }

  .contact label {
    margin-bottom: 8px;
  }
}

.contact input,
.contact textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.contact input:focus,
.contact textarea:focus {
  outline: 2px solid color-mix(in oklab, var(--accent) 60%, transparent);
  border-color: transparent;
}

.contact .footnote {
  color: var(--muted);
}

.contact .form-status {
  margin-top: 10px;
  min-height: 1.2em;
  color: var(--muted);
}

.contact .form-status.loading {
  color: var(--muted);
}

.contact .form-status.success {
  color: #86efac;
}

.contact .form-status.error {
  color: #fca5a5;
}

.contact .btn[disabled] {
  opacity: .7;
  cursor: not-allowed;
}

.contact .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

.contact .footnote {
  text-align: center;
  margin-top: 16px;
}

.contact select {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
}

#contact .contact {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.site-footer {
  padding: 24px 0 64px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  gap: 12px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--text);
}

.social-media {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-media a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Legal Pages Styling */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.legal-content h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 40px;
  color: var(--text);
  text-align: center;
}

.legal-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 28px);
  margin: 32px 0 16px;
  color: var(--text);
  border-bottom: 2px solid var(--stroke);
  padding-bottom: 8px;
}

.legal-content h3 {
  font-weight: 600;
  font-size: clamp(16px, 2vw, 20px);
  margin: 24px 0 12px;
  color: var(--text);
}

.legal-content h4 {
  font-weight: 600;
  font-size: clamp(14px, 1.8vw, 18px);
  margin: 20px 0 8px;
  color: var(--text);
}

.legal-content p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--text);
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--text);
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.legal-content a:hover {
  border-bottom-color: var(--primary);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 32px 0 48px;
    gap: 24px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-media {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 24px 0 40px;
    gap: 20px;
  }

  .site-footer nav {
    gap: 8px;
  }

  .site-footer a {
    padding: 8px;
  }

  .social-media {
    gap: 16px;
  }

  .social-media a {
    width: 36px;
    height: 36px;
  }
}

/* Reveal Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(2px);
}

.reveal-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: none !important;
  transition: opacity .4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform .4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter .4s ease;
}

/* Enhanced Services Section Animations */
#services .section-head h2[data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(5px);
}

#services .section-head h2.reveal-in {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: none !important;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.3s ease;
}

/* Enhanced Testimonials Section Animations */
#testimonials .section-head h2[data-reveal] {
  opacity: 0;
  transform: translateX(-60px) scale(0.9);
  filter: blur(4px);
}

#testimonials .section-head h2.reveal-in {
  opacity: 1 !important;
  transform: translateX(0) scale(1) !important;
  filter: none !important;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.6s ease;
}

#testimonials .section-head p[data-reveal] {
  opacity: 0;
  transform: translateX(-40px);
  filter: blur(3px);
}

#testimonials .section-head p.reveal-in {
  opacity: 1 !important;
  transform: translateX(0) !important;
  filter: none !important;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s,
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s,
    filter 0.5s ease 0.1s;
}

#services .section-head p[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(3px);
}

#services .section-head p.reveal-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: none !important;
  transition: opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s,
    transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s,
    filter 0.25s ease 0.05s;
}

/* Service Cards - Simple fade in */
#services .card[data-reveal] {
  opacity: 0;
}

#services .card.reveal-in {
  opacity: 1;
}

#services .card:nth-child(1).reveal-in {
  transition: opacity 0.6s ease 0.2s;
}

#services .card:nth-child(2).reveal-in {
  transition: opacity 0.6s ease 0.4s;
}

#services .card:nth-child(3).reveal-in {
  transition: opacity 0.6s ease 0.6s;
}

/* Mobile touch improvements */
@media (max-width: 768px) {

  /* Improve touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-menu a {
    min-height: 44px;
  }

  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  /* Prevent zoom on form inputs */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Better scroll performance */
  * {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* Reduce animations for better performance */
  .hero-media video.hero-video {
    transition: opacity 0.8s ease-in-out;
  }

  .card,
  .quote,
  .steps li {
    transition: box-shadow .15s ease;
  }

  /* Optimize rendering */
  .portfolio-item,
  .hero-stats div {
    will-change: auto;
  }

  /* Reduce motion blur on scroll */
  .hero-media img,
  .hero-media video {
    backface-visibility: hidden;
    perspective: 1000px;
  }
}

@media (max-width: 480px) {

  /* Even larger touch targets for small screens */
  .btn {
    min-height: 48px;
    padding: 14px 20px;
    font-size: 15px;
  }

  .nav-menu a {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
  }

  /* Optimize text sizes for readability */
  .section-head h2 {
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.15;
  }

  .card h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .steps h3 {
    font-size: 16px;
    line-height: 1.4;
  }

  .card p,
  .steps p {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Better spacing for small screens */
  .hero-content {
    padding: 20px 12px;
  }

  .card,
  .quote,
  .steps li {
    padding: 16px;
  }

  /* Improve text readability on small screens */
  body {
    font-size: 15px;
    line-height: 1.6;
  }

  .review-text {
    font-size: 14px;
  }

  .contact input,
  .contact textarea {
    font-size: 16px;
  }
}

/* Mobile performance optimization */
@media (max-width: 480px) {

  /* Keep portfolio interactions but optimize them */
  .portfolio-item:hover,
  .portfolio-item.portfolio-active {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12) !important;
  }

  .portfolio-item:hover img,
  .portfolio-item.portfolio-active img {
    transform: scale(1.02) !important;
  }

  /* Add touch feedback */
  .portfolio-item {
    transition: all 0.2s ease !important;
  }

  .portfolio-item.portfolio-active .portfolio-overlay {
    opacity: 1 !important;
  }

  .portfolio-item.portfolio-active .portfolio-content {
    transform: translateY(0) !important;
  }

  /* Simplify card animations */
  .card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  }

  /* Reduce gradient complexity */
  .steps li:hover::after {
    background: rgba(255, 255, 255, 0.95) !important;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-in,
  [data-reveal] {
    transition: none !important;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Menu Page Styles */
.menu-page-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.menu-page-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: var(--primary);
  color: white;
  transform: translateX(-2px);
}

.menu-page {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 40px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

.menu-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.menu-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 8vw, 64px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.menu-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-light);
  margin-bottom: 48px;
  font-weight: 400;
}

.menu-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}

.menu-section {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.menu-section.full-width {
  grid-column: 1 / -1;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.01em;
}

.menu-items {
  display: grid;
  gap: 16px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.4);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  text-align: left;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.menu-item.primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: white;
  border-color: transparent;
}

.menu-item.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.3);
}

.menu-icon {
  font-size: 28px;
  min-width: 40px;
  text-align: center;
}

.menu-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.menu-text p {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
  line-height: 1.4;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.4);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  text-align: left;
}

.quick-action:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.quick-action.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: white;
  border-color: transparent;
}

.quick-action.cta:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.3);
}

.action-icon {
  font-size: 32px;
  min-width: 48px;
  text-align: center;
}

.action-text h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.action-text p {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
  line-height: 1.4;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.legal-links a {
  color: var(--text-light);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: var(--primary);
}

/* Mobile optimizations for menu page */
@media (max-width: 768px) {
  .menu-page {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 24px;
  }

  .menu-section {
    padding: 24px;
  }

  .menu-item {
    padding: 16px;
    gap: 12px;
  }

  .menu-icon {
    font-size: 24px;
    min-width: 32px;
  }

  .quick-action {
    padding: 20px;
    gap: 12px;
  }

  .action-icon {
    font-size: 28px;
    min-width: 40px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .legal-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .menu-section {
    padding: 20px;
  }

  .menu-item {
    padding: 14px;
    gap: 10px;
  }

  .menu-text h3 {
    font-size: 16px;
  }

  .menu-text p {
    font-size: 13px;
  }

  .action-text h3 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  #portfolio .portfolio-item:nth-child(1) img {
    object-position: center 20%;
  }

  #portfolio .portfolio-item:nth-child(2) img {
    object-position: center 20%;
  }

  #portfolio .portfolio-item:nth-child(3) img {
    object-position: center 25%;
  }

  #portfolio .portfolio-item:nth-child(5) img {
    object-position: center 20%;
  }

  #portfolio .portfolio-item:nth-child(6) img {
    object-position: center 20%;
  }
}

@media (max-width: 480px) {
  #portfolio .portfolio-item:nth-child(1) img {
    object-position: center 20%;
  }

  #portfolio .portfolio-item:nth-child(2) img {
    object-position: center 20%;
  }

  #portfolio .portfolio-item:nth-child(3) img {
    object-position: center 25%;
  }

  #portfolio .portfolio-item:nth-child(5) img {
    object-position: center 20%;
  }

  #portfolio .portfolio-item:nth-child(6) img {
    object-position: center 20%;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.about-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-text h2 {
  margin: 0 0 16px 0;
  font-size: 28px;
}

.about-text p {
  margin: 0 0 16px 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

  .about-text {
    padding: 0 20px;
    max-width: 100%;
  }

  .about-text h2 {
    font-size: 24px;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.65;
  }
}

@media (max-width: 480px) {
  .about-text {
    padding: 0 16px;
  }

  .about-text h2 {
    font-size: 22px;
  }

  .about-text p {
    font-size: 14px;
  }
}

.gallery-item .img-shift-down {
  object-position: center 30%;
}

.gallery-item .img-shift-up {
  object-position: center 25%;
}

.gallery-item .img-align-28 {
  object-position: center 28%;
}

@media (max-width: 375px) {
  .hero-content {
    position: relative;
    top: -40px;
  }

  .hero-cta {
    position: relative;
    top: -36px;
  }

  .hero-stats {
    position: relative;
    top: -38px;
    margin-top: 0;
  }
}

@media (max-width: 320px) {
  .hero-content {
    position: relative;
    top: -48px;
  }

  .hero-cta {
    position: relative;
    top: -42px;
  }

  .hero-stats {
    position: relative;
    top: -44px;
    margin-top: 0;
  }
}

@media (max-width: 375px) and (orientation: portrait) {
  .hero-stats {
    transform: translateY(-22px);
  }
}

@media (max-width: 667px) and (orientation: landscape) {
  .hero-stats {
    transform: translateY(-16px);
  }
}