/* TORI BEST - Design System with zeph- prefix */
/* Color Palette: Plum (#6B4C7A), Sand (#E8D5B7), Gold (#D4A574) - No blue/white primaries */

:root {
  /* Colors - Warm palette, no blue/white */
  --zeph-bg: #1A1620;
  --zeph-surface: #2A2533;
  --zeph-surface-elevated: #3D3545;
  --zeph-text: #E8D5B7;
  --zeph-text-muted: #B8A68A;
  --zeph-text-subtle: #8A7A6A;
  --zeph-primary: #6B4C7A;
  --zeph-primary-light: #8A6B98;
  --zeph-primary-dark: #4F3858;
  --zeph-accent: #D4A574;
  --zeph-accent-light: #E8C49A;
  --zeph-accent-dark: #B8905A;
  --zeph-border: #3D3545;
  --zeph-border-light: #4A4155;
  --zeph-glow: rgba(107, 76, 122, 0.3);
  --zeph-glow-accent: rgba(212, 165, 116, 0.25);
  
  /* Typography - Fluid scale */
  --zeph-font-display: clamp(2rem, 4vw + 1rem, 3.5rem);
  --zeph-font-h1: clamp(1.75rem, 3vw + 0.75rem, 2.75rem);
  --zeph-font-h2: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  --zeph-font-h3: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  --zeph-font-body: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
  --zeph-font-small: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
  
  /* Spacing - Fluid scale */
  --zeph-space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --zeph-space-sm: clamp(0.75rem, 1.5vw, 1rem);
  --zeph-space-md: clamp(1rem, 2vw, 1.5rem);
  --zeph-space-lg: clamp(1.5rem, 3vw, 2.5rem);
  --zeph-space-xl: clamp(2rem, 4vw, 4rem);
  --zeph-space-2xl: clamp(3rem, 6vw, 6rem);
  
  /* Border radius - Varied scale */
  --zeph-radius-sm: 8px;
  --zeph-radius-md: 12px;
  --zeph-radius-lg: 16px;
  --zeph-radius-xl: 24px;
  --zeph-radius-full: 9999px;
  
  /* Shadows - Subtle glassmorphism */
  --zeph-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --zeph-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --zeph-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
  --zeph-shadow-glow: 0 0 24px var(--zeph-glow);
}

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

/* Prevent horizontal overflow */
img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  font-size: var(--zeph-font-body);
  line-height: 1.6;
  color: var(--zeph-text);
  background-color: var(--zeph-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 0;
  background: var(--zeph-primary);
  color: var(--zeph-text);
  padding: var(--zeph-space-sm) var(--zeph-space-md);
  text-decoration: none;
  z-index: 1001;
  border-radius: 0 0 var(--zeph-radius-md) 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Container */
.zeph-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 3vw, 3rem);
  box-sizing: border-box;
}

/* Header - Fixed Navigation */
.zeph-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 22, 32, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(107, 76, 122, 0.2);
  padding-block: var(--zeph-space-md);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  box-shadow: 
    0 2px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(232, 213, 183, 0.05) inset;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.zeph-header--scrolled {
  background: rgba(26, 22, 32, 0.95);
  border-bottom-color: rgba(107, 76, 122, 0.4);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(232, 213, 183, 0.08) inset,
    0 0 60px rgba(107, 76, 122, 0.1);
}

.zeph-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zeph-space-lg);
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  min-height: 60px; /* Minimum height for header */
}

.zeph-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--zeph-space-sm);
  text-decoration: none;
  color: var(--zeph-text);
  font-weight: 700;
  font-size: var(--zeph-font-small);
  letter-spacing: 0.05em;
}

.zeph-logo__text {
  color: var(--zeph-text);
}

/* Professional Multi-layered Emblem */
.zeph-emblem {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zeph-emblem__base {
  position: relative;
  width: 100%;
  height: 100%;
  /* Soft hexagonal shape using clip-path */
  clip-path: polygon(
    20% 0%,
    80% 0%,
    100% 20%,
    100% 80%,
    80% 100%,
    20% 100%,
    0% 80%,
    0% 20%
  );
  /* Fallback for browsers that don't support clip-path */
  border-radius: 12px;
  /* Frosted glass effect */
  background: rgba(26, 22, 32, 0.4);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.3s ease;
}

/* Outer border - Metallic silver stroke */
.zeph-emblem__border--outer {
  position: absolute;
  inset: 0;
  clip-path: polygon(
    20% 0%,
    80% 0%,
    100% 20%,
    100% 80%,
    80% 100%,
    20% 100%,
    0% 80%,
    0% 20%
  );
  border-radius: 12px;
  border: 1.5px solid;
  border-color: rgba(192, 192, 192, 0.9);
  background: 
    linear-gradient(135deg,
      rgba(192, 192, 192, 0.9) 0%,
      rgba(255, 255, 255, 0.95) 30%,
      rgba(192, 192, 192, 0.9) 70%,
      rgba(160, 160, 160, 0.85) 100%
    );
  z-index: 2;
  pointer-events: none;
  box-shadow: 
    0 0 0 1.5px rgba(192, 192, 192, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Inner border - Glowing purple neon line */
.zeph-emblem__border--inner {
  position: absolute;
  inset: 3px;
  clip-path: polygon(
    20% 0%,
    80% 0%,
    100% 20%,
    100% 80%,
    80% 100%,
    20% 100%,
    0% 80%,
    0% 20%
  );
  border-radius: 9px;
  border: 1px solid;
  border-color: rgba(107, 76, 122, 0.8);
  box-shadow: 
    0 0 8px rgba(107, 76, 122, 0.6),
    0 0 16px rgba(107, 76, 122, 0.4),
    inset 0 0 8px rgba(107, 76, 122, 0.3);
  z-index: 3;
  pointer-events: none;
}

/* Complex linear gradient at 45 degrees (purple to amber) */
.zeph-emblem__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,
    rgba(107, 76, 122, 0.85) 0%,
    rgba(138, 107, 152, 0.9) 25%,
    rgba(212, 165, 116, 0.8) 50%,
    rgba(212, 165, 116, 0.85) 75%,
    rgba(107, 76, 122, 0.8) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Inner shadow - convex 3D effect */
.zeph-emblem__inner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(232, 213, 183, 0.15) 0%,
    rgba(212, 165, 116, 0.1) 30%,
    transparent 70%
  );
  box-shadow: 
    inset 0 2px 8px rgba(232, 213, 183, 0.2),
    inset 0 -2px 8px rgba(0, 0, 0, 0.3),
    inset 2px 0 8px rgba(232, 213, 183, 0.15),
    inset -2px 0 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
  pointer-events: none;
  clip-path: polygon(
    20% 0%,
    80% 0%,
    100% 20%,
    100% 80%,
    80% 100%,
    20% 100%,
    0% 80%,
    0% 20%
  );
  border-radius: 12px;
}

/* Custom SVG Arrow with sharp edges */
.zeph-emblem__arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  z-index: 4;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.3s ease;
}

/* Hover effects */
.zeph-logo:hover .zeph-emblem__base {
  transform: scale(1.05);
  box-shadow: 
    0 0 0 1px rgba(192, 192, 192, 0.95),
    0 0 20px rgba(107, 76, 122, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

.zeph-logo:hover .zeph-emblem__border--inner {
  box-shadow: 
    0 0 12px rgba(107, 76, 122, 0.8),
    0 0 24px rgba(107, 76, 122, 0.6),
    inset 0 0 12px rgba(107, 76, 122, 0.4);
  border-color: rgba(107, 76, 122, 1);
}

.zeph-logo:hover .zeph-emblem__arrow {
  transform: translate(-50%, -50%) translateX(2px);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.zeph-logo:active .zeph-emblem__base {
  transform: scale(0.98);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .zeph-emblem__base {
    transition: none;
  }
  
  .zeph-emblem__arrow {
    transition: none;
  }
  
  .zeph-logo:hover .zeph-emblem__base {
    transform: none;
  }
  
  .zeph-logo:hover .zeph-emblem__arrow {
    transform: translate(-50%, -50%);
  }
  
  .zeph-logo:active .zeph-emblem__base {
    transform: scale(0.98);
  }
}

.zeph-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--zeph-space-md);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.zeph-nav__list a {
  color: var(--zeph-text-muted);
  text-decoration: none;
  font-size: var(--zeph-font-small);
  transition: color 0.2s ease;
  padding: var(--zeph-space-xs) var(--zeph-space-sm);
  border-radius: var(--zeph-radius-sm);
}

.zeph-nav__list a:hover,
.zeph-nav__list a:focus-visible {
  color: var(--zeph-text);
  background: rgba(107, 76, 122, 0.1);
  outline: 2px solid transparent;
}

.zeph-nav__list a:focus-visible {
  outline: 2px solid var(--zeph-primary);
  outline-offset: 2px;
}

/* Buttons */
.zeph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--zeph-space-sm) var(--zeph-space-md);
  font-size: var(--zeph-font-small);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--zeph-border);
  border-radius: var(--zeph-radius-md);
  background: transparent;
  color: var(--zeph-text);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.zeph-btn:hover {
  border-color: var(--zeph-primary);
  color: var(--zeph-text);
  background: rgba(107, 76, 122, 0.1);
}

.zeph-btn:focus-visible {
  outline: 2px solid var(--zeph-primary);
  outline-offset: 2px;
}

.zeph-btn--primary {
  background: linear-gradient(135deg, var(--zeph-primary), var(--zeph-primary-light));
  color: var(--zeph-text);
  border-color: transparent;
  box-shadow: var(--zeph-shadow-sm);
}

.zeph-btn--primary:hover {
  background: linear-gradient(135deg, var(--zeph-primary-light), var(--zeph-primary));
  box-shadow: var(--zeph-shadow-md);
  transform: translateY(-1px);
}

.zeph-btn--secondary {
  border-color: var(--zeph-accent);
  color: var(--zeph-accent);
}

.zeph-btn--secondary:hover {
  background: rgba(212, 165, 116, 0.1);
}

.zeph-btn--large {
  padding: var(--zeph-space-md) var(--zeph-space-lg);
  font-size: var(--zeph-font-body);
  font-weight: 600;
}

/* Glass button effect */
.zeph-btn--glass {
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 213, 183, 0.2);
  overflow: hidden;
}

.zeph-btn--glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(232, 213, 183, 0.1) 0%,
    rgba(107, 76, 122, 0.15) 50%,
    rgba(212, 165, 116, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.zeph-btn--glass:hover::before {
  opacity: 1;
}

.zeph-btn--primary.zeph-btn--glass {
  background: linear-gradient(135deg,
    rgba(107, 76, 122, 0.85) 0%,
    rgba(138, 107, 152, 0.9) 100%);
  border-color: rgba(232, 213, 183, 0.3);
  box-shadow: 
    0 4px 16px rgba(107, 76, 122, 0.3),
    0 0 0 1px rgba(232, 213, 183, 0.1) inset,
    0 2px 8px rgba(0, 0, 0, 0.2) inset,
    0 0 40px rgba(107, 76, 122, 0.2) inset;
}

.zeph-btn--primary.zeph-btn--glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%,
    rgba(232, 213, 183, 0.3) 0%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.zeph-btn--primary.zeph-btn--glass:hover {
  box-shadow: 
    0 6px 24px rgba(107, 76, 122, 0.4),
    0 0 0 1px rgba(232, 213, 183, 0.2) inset,
    0 2px 8px rgba(0, 0, 0, 0.2) inset,
    0 0 60px rgba(107, 76, 122, 0.3) inset;
  transform: translateY(-2px);
}

.zeph-btn--primary.zeph-btn--glass:hover::after {
  opacity: 1;
}

.zeph-btn--secondary.zeph-btn--glass {
  background: rgba(212, 165, 116, 0.1);
  border-color: rgba(212, 165, 116, 0.4);
  box-shadow: 
    0 2px 8px rgba(212, 165, 116, 0.2),
    0 0 0 1px rgba(232, 213, 183, 0.1) inset,
    0 1px 4px rgba(0, 0, 0, 0.1) inset;
}

.zeph-btn--secondary.zeph-btn--glass:hover {
  background: rgba(212, 165, 116, 0.15);
  border-color: rgba(212, 165, 116, 0.6);
  box-shadow: 
    0 4px 16px rgba(212, 165, 116, 0.3),
    0 0 0 1px rgba(232, 213, 183, 0.15) inset,
    0 1px 4px rgba(0, 0, 0, 0.1) inset,
    0 0 30px rgba(212, 165, 116, 0.2) inset;
  transform: translateY(-1px);
}

.zeph-btn--glass > * {
  position: relative;
  z-index: 2;
}

/* Hero Section */
.zeph-hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  padding-top: clamp(6rem, 12vw, 10rem);
  overflow: hidden;
  background: 
    radial-gradient(ellipse at top, rgba(107, 76, 122, 0.12), transparent 60%),
    var(--zeph-bg);
  max-width: 100%;
  box-sizing: border-box;
  min-height: 80vh;
  display: flex;
  align-items: center;
  /* Scroll margin for anchor navigation */
  scroll-margin-top: 100px;
}

/* Grid background with parallax */
.zeph-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(107, 76, 122, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 76, 122, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 0, 0 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  transition: transform 0.1s ease-out;
}

/* Particles canvas with parallax */
.zeph-hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  transition: transform 0.1s ease-out;
}

/* Hero layout - two columns */
.zeph-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.zeph-hero__content {
  max-width: 100%;
  display: grid;
  gap: var(--zeph-space-xl);
  position: relative;
  z-index: 2;
}

/* 3D Glassmorphic Shape Container */
.zeph-hero__visual {
  position: relative;
  width: 100%;
  height: clamp(400px, 60vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  perspective-origin: center center;
  z-index: 1;
}

.zeph-hero__3d-shape {
  position: relative;
  width: clamp(300px, 40vw, 500px);
  height: clamp(300px, 40vw, 500px);
  transform-style: preserve-3d;
  animation: floatShape 8s ease-in-out infinite;
}

@keyframes floatShape {
  0%, 100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
  }
}

.zeph-hero__3d-shape__container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotateShape 25s linear infinite;
  transform: rotateY(0deg) rotateX(15deg);
  transition: transform 0.3s ease-out;
}

@keyframes rotateShape {
  from {
    transform: rotateY(0deg) rotateX(15deg);
  }
  to {
    transform: rotateY(360deg) rotateX(15deg);
  }
}

/* Torus rings - creating 3D glassmorphic torus effect */
.zeph-hero__3d-shape__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 4px solid;
  border-radius: 50%;
  transform-style: preserve-3d;
  transform-origin: center center;
  background: radial-gradient(ellipse at center,
    rgba(107, 76, 122, 0.15),
    rgba(212, 165, 116, 0.1),
    transparent);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  box-shadow: 
    0 0 0 1px rgba(232, 213, 183, 0.1) inset,
    0 0 60px rgba(107, 76, 122, 0.2) inset;
}

.zeph-hero__3d-shape__ring--1 {
  border-color: rgba(107, 76, 122, 0.7);
  transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
  box-shadow: 
    0 0 50px rgba(107, 76, 122, 0.5),
    0 0 100px rgba(107, 76, 122, 0.3),
    inset 0 0 50px rgba(107, 76, 122, 0.2),
    0 0 0 1px rgba(232, 213, 183, 0.15) inset;
  width: 100%;
  height: 100%;
}

.zeph-hero__3d-shape__ring--2 {
  border-color: rgba(138, 107, 152, 0.6);
  transform: translate(-50%, -50%) rotateX(30deg) rotateY(0deg);
  box-shadow: 
    0 0 45px rgba(138, 107, 152, 0.4),
    0 0 90px rgba(138, 107, 152, 0.25),
    inset 0 0 45px rgba(138, 107, 152, 0.15),
    0 0 0 1px rgba(232, 213, 183, 0.12) inset;
  width: 90%;
  height: 90%;
}

.zeph-hero__3d-shape__ring--3 {
  border-color: rgba(212, 165, 116, 0.6);
  transform: translate(-50%, -50%) rotateX(60deg) rotateY(0deg);
  box-shadow: 
    0 0 40px rgba(212, 165, 116, 0.4),
    0 0 80px rgba(212, 165, 116, 0.25),
    inset 0 0 40px rgba(212, 165, 116, 0.15),
    0 0 0 1px rgba(232, 213, 183, 0.12) inset;
  width: 80%;
  height: 80%;
}

.zeph-hero__3d-shape__ring--4 {
  border-color: rgba(107, 76, 122, 0.5);
  transform: translate(-50%, -50%) rotateX(90deg) rotateY(0deg);
  box-shadow: 
    0 0 35px rgba(107, 76, 122, 0.3),
    0 0 70px rgba(107, 76, 122, 0.2),
    inset 0 0 35px rgba(107, 76, 122, 0.1),
    0 0 0 1px rgba(232, 213, 183, 0.1) inset;
  width: 70%;
  height: 70%;
}

.zeph-hero__3d-shape__ring--5 {
  border-color: rgba(138, 107, 152, 0.5);
  transform: translate(-50%, -50%) rotateX(120deg) rotateY(0deg);
  box-shadow: 
    0 0 30px rgba(138, 107, 152, 0.3),
    0 0 60px rgba(138, 107, 152, 0.2),
    inset 0 0 30px rgba(138, 107, 152, 0.1),
    0 0 0 1px rgba(232, 213, 183, 0.1) inset;
  width: 60%;
  height: 60%;
}

.zeph-hero__3d-shape__ring--6 {
  border-color: rgba(212, 165, 116, 0.4);
  transform: translate(-50%, -50%) rotateX(150deg) rotateY(0deg);
  box-shadow: 
    0 0 25px rgba(212, 165, 116, 0.3),
    0 0 50px rgba(212, 165, 116, 0.2),
    inset 0 0 25px rgba(212, 165, 116, 0.1),
    0 0 0 1px rgba(232, 213, 183, 0.08) inset;
  width: 50%;
  height: 50%;
}

/* Glow effect */
.zeph-hero__3d-shape__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(107, 76, 122, 0.3) 0%,
    rgba(212, 165, 116, 0.2) 30%,
    transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulseGlow 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.zeph-hero__eyebrow {
  font-size: var(--zeph-font-small);
  color: var(--zeph-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: var(--zeph-space-sm);
}

.zeph-hero__title {
  font-size: clamp(3rem, 8vw + 2rem, 7rem);
  line-height: 0.95;
  font-weight: 900;
  color: var(--zeph-text);
  margin: 0;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  position: relative;
}

.zeph-hero__title-line {
  display: block;
  position: relative;
  text-shadow: 
    0 0 40px rgba(107, 76, 122, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.zeph-hero__title-line:nth-child(1) {
  color: var(--zeph-text);
}

.zeph-hero__title-line:nth-child(2),
.zeph-hero__title-line--highlight {
  color: var(--zeph-accent);
  text-shadow: 
    0 0 50px rgba(212, 165, 116, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.zeph-hero__title-line:nth-child(3) {
  color: var(--zeph-text);
}

.zeph-hero__subtitle {
  font-size: clamp(1.125rem, 1.5vw + 0.875rem, 1.375rem);
  color: var(--zeph-text-muted);
  line-height: 1.7;
  max-width: 70ch;
  font-weight: 400;
  margin-top: var(--zeph-space-md);
}

.zeph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zeph-space-md);
  margin-top: var(--zeph-space-lg);
}

.zeph-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--zeph-space-md);
  margin-top: var(--zeph-space-lg);
}

.zeph-stat {
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-xs);
  padding: var(--zeph-space-md);
  background: var(--zeph-surface);
  border: 1px solid var(--zeph-border);
  border-radius: var(--zeph-radius-md);
}

.zeph-stat__number {
  font-size: var(--zeph-font-h2);
  font-weight: 700;
  color: var(--zeph-accent);
  line-height: 1;
}

.zeph-stat__label {
  font-size: var(--zeph-font-small);
  color: var(--zeph-text-muted);
}

.zeph-hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 600px;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.zeph-hero__deco {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

/* Section */
.zeph-section {
  padding-block: var(--zeph-space-2xl);
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
  /* Scroll margin for anchor navigation with fixed header */
  scroll-margin-top: 100px;
}

.zeph-section--alt {
  background: var(--zeph-surface);
  position: relative;
}

.zeph-section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--zeph-border), transparent);
}

.zeph-section--process {
  background: #0F0B15;
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.zeph-section__header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--zeph-space-xl);
}

.zeph-section__title {
  font-size: var(--zeph-font-h1);
  font-weight: 700;
  color: var(--zeph-text);
  margin: 0 0 var(--zeph-space-md);
  line-height: 1.2;
}

.zeph-section__intro {
  font-size: var(--zeph-font-body);
  color: var(--zeph-text-muted);
  line-height: 1.7;
}

/* Services - Z-pattern layout */
.zeph-services {
  display: flex;
  flex-direction: column;
  gap: clamp(6rem, 12vw, 10rem);
  max-width: 1400px;
  margin-inline: auto;
}

.zeph-service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  min-height: 400px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zeph-service-item--visible {
  opacity: 1;
  transform: translateY(0);
}

.zeph-service-item--left {
  grid-template-areas: "content visual";
}

.zeph-service-item--right {
  grid-template-areas: "visual content";
}

.zeph-service-item--left .zeph-service-item__content {
  grid-area: content;
}

.zeph-service-item--left .zeph-service-item__visual {
  grid-area: visual;
}

.zeph-service-item--right .zeph-service-item__content {
  grid-area: content;
}

.zeph-service-item--right .zeph-service-item__visual {
  grid-area: visual;
}

.zeph-service-item__content {
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-lg);
  max-width: 600px;
}

.zeph-service-item__title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 700;
  color: var(--zeph-text);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.zeph-service-item__description {
  font-size: clamp(1.125rem, 1.5vw + 0.875rem, 1.375rem);
  color: var(--zeph-text-muted);
  line-height: 1.7;
  margin: 0;
}

.zeph-service-item__features {
  list-style: none;
  padding: 0;
  margin: var(--zeph-space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-sm);
}

.zeph-service-item__features li {
  position: relative;
  padding-left: clamp(1.5rem, 2vw, 2rem);
  color: var(--zeph-text-muted);
  font-size: clamp(1rem, 1.2vw + 0.875rem, 1.125rem);
  line-height: 1.6;
}

.zeph-service-item__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zeph-accent);
  box-shadow: 0 0 12px rgba(212, 165, 116, 0.4);
}

.zeph-service-item__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.zeph-service-item--visible .zeph-service-item__visual {
  opacity: 1;
  transform: scale(1);
}

.zeph-service-item__icon {
  width: clamp(160px, 20vw, 240px);
  height: clamp(160px, 20vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(107, 76, 122, 0.15), 
    rgba(138, 107, 152, 0.1),
    rgba(212, 165, 116, 0.1));
  border: 1px solid rgba(107, 76, 122, 0.2);
  border-radius: clamp(24px, 3vw, 32px);
  color: var(--zeph-accent);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(232, 213, 183, 0.05) inset,
    0 0 80px rgba(107, 76, 122, 0.1) inset;
}

.zeph-service-item__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, 
    rgba(232, 213, 183, 0.1), 
    transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.zeph-service-item:hover .zeph-service-item__icon::before {
  opacity: 1;
}

.zeph-service-item__icon svg {
  width: 60%;
  height: 60%;
  filter: drop-shadow(0 4px 12px rgba(212, 165, 116, 0.3));
  transition: transform 0.4s ease;
}

.zeph-service-item:hover .zeph-service-item__icon svg {
  transform: scale(1.1) rotate(5deg);
}

/* Case Study - Modern Bento Grid */
.zeph-case-study {
  max-width: 1600px;
  margin-inline: auto;
}

.zeph-case-study__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.zeph-case-study__label {
  display: inline-block;
  padding: var(--zeph-space-xs) var(--zeph-space-md);
  background: rgba(107, 76, 122, 0.2);
  border: 1px solid var(--zeph-primary);
  border-radius: var(--zeph-radius-full);
  font-size: var(--zeph-font-small);
  color: var(--zeph-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--zeph-space-md);
}

.zeph-case-study__title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 700;
  color: var(--zeph-text);
  margin: 0;
  letter-spacing: -0.02em;
}

.zeph-case-study__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Intro card - spans full width */
.zeph-case-study__intro-card {
  grid-column: span 12;
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(15, 11, 21, 0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(107, 76, 122, 0.3);
  border-radius: clamp(24px, 3vw, 32px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(232, 213, 183, 0.08) inset,
    0 0 100px rgba(107, 76, 122, 0.12) inset;
}

.zeph-case-study__intro {
  font-size: clamp(1.125rem, 1.5vw + 0.875rem, 1.375rem);
  color: var(--zeph-text-muted);
  line-height: 1.7;
  margin: 0;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

/* Results card - left side with highlighted stats */
.zeph-case-study__results-card {
  grid-column: span 5;
  grid-row: span 4;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, 
    rgba(107, 76, 122, 0.5),
    rgba(138, 107, 152, 0.4),
    rgba(212, 165, 116, 0.3));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 2px solid rgba(212, 165, 116, 0.5);
  border-radius: clamp(24px, 3vw, 32px);
  box-shadow: 
    0 16px 64px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(232, 213, 183, 0.15) inset,
    0 0 120px rgba(212, 165, 116, 0.25) inset,
    0 0 180px rgba(107, 76, 122, 0.2),
    0 0 240px rgba(212, 165, 116, 0.15);
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-xl);
  position: relative;
  overflow: hidden;
}

.zeph-case-study__results-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, 
    rgba(232, 213, 183, 0.2), 
    transparent 70%);
  pointer-events: none;
}

.zeph-case-study__results-title {
  font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem);
  font-weight: 700;
  color: var(--zeph-accent);
  margin: 0;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

/* Challenge card - right side, stacked */
.zeph-case-study__challenge-card {
  grid-column: span 7;
  grid-row: span 2;
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(15, 11, 21, 0.65);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  border: 2px solid rgba(107, 76, 122, 0.4);
  border-left: 4px solid rgba(212, 165, 116, 0.6);
  border-radius: clamp(20px, 3vw, 28px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(232, 213, 183, 0.05) inset,
    0 0 80px rgba(107, 76, 122, 0.15) inset;
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-md);
  position: relative;
  overflow: hidden;
}

.zeph-case-study__challenge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(212, 165, 116, 0.8),
    rgba(107, 76, 122, 0.6),
    transparent);
}

/* Solution card - right side, stacked below Challenge */
.zeph-case-study__solution-card {
  grid-column: span 7;
  grid-row: span 2;
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(15, 11, 21, 0.7);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 2px solid rgba(138, 107, 152, 0.4);
  border-right: 4px solid rgba(212, 165, 116, 0.6);
  border-radius: clamp(20px, 3vw, 28px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(232, 213, 183, 0.05) inset,
    0 0 80px rgba(138, 107, 152, 0.15) inset;
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-md);
  position: relative;
  overflow: hidden;
}

.zeph-case-study__solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(212, 165, 116, 0.8),
    rgba(138, 107, 152, 0.6),
    transparent);
}

.zeph-case-study__card-title {
  font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem);
  font-weight: 700;
  color: var(--zeph-accent);
  margin: 0;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.zeph-case-study__card-text {
  font-size: clamp(1rem, 1.2vw + 0.875rem, 1.125rem);
  color: var(--zeph-text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Results metrics - highlighted stat blocks */
.zeph-case-study__metrics {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: var(--zeph-space-md);
  position: relative;
  z-index: 1;
  flex: 1;
  justify-content: center;
}

.zeph-case-study__metric {
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-sm);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(15, 11, 21, 0.4);
  border-radius: clamp(16px, 2vw, 24px);
  border: 2px solid rgba(212, 165, 116, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(232, 213, 183, 0.1) inset,
    0 0 40px rgba(212, 165, 116, 0.15) inset;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zeph-case-study__metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(212, 165, 116, 0.8),
    rgba(107, 76, 122, 0.6),
    transparent);
}

.zeph-case-study__metric:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(232, 213, 183, 0.15) inset,
    0 0 60px rgba(212, 165, 116, 0.2) inset;
}

.zeph-case-study__metric-number {
  font-size: clamp(3.5rem, 7vw + 1.5rem, 6rem);
  font-weight: 900;
  color: var(--zeph-accent);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 
    0 0 30px rgba(212, 165, 116, 0.6),
    0 0 60px rgba(212, 165, 116, 0.4),
    0 0 90px rgba(212, 165, 116, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--zeph-space-xs);
}

.zeph-case-study__metric-label {
  font-size: clamp(1rem, 1.3vw + 0.875rem, 1.25rem);
  color: var(--zeph-text-muted);
  line-height: 1.5;
  font-weight: 500;
}

.zeph-case-study__image svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Portfolio */
/* Portfolio - Masonry Layout */
.zeph-portfolio {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-auto-rows: minmax(300px, auto);
}

/* Hero card - full width */
.zeph-portfolio-item--hero {
  grid-column: span 12;
  min-height: clamp(400px, 50vh, 600px);
  position: relative;
}

/* Masonry items - asymmetrical two-column */
.zeph-portfolio-item--masonry {
  grid-column: span 6;
}

.zeph-portfolio-item--masonry:nth-child(2) {
  grid-column: span 6;
  min-height: clamp(450px, 55vh, 550px);
}

.zeph-portfolio-item--masonry:nth-child(3) {
  grid-column: span 6;
  min-height: clamp(350px, 40vh, 450px);
  margin-top: clamp(-3rem, -5vw, -2rem);
}

.zeph-portfolio-item--masonry:nth-child(4) {
  grid-column: span 6;
  min-height: clamp(400px, 45vh, 500px);
}

.zeph-portfolio-item--masonry:nth-child(5) {
  grid-column: span 6;
  min-height: clamp(450px, 55vh, 550px);
  margin-top: clamp(-2rem, -4vw, -1rem);
}

.zeph-portfolio-item {
  background: var(--zeph-surface);
  border: 2px solid rgba(107, 76, 122, 0.2);
  border-radius: clamp(20px, 3vw, 28px);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(232, 213, 183, 0.05) inset;
}

.zeph-portfolio-item::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(212, 165, 116, 0.3),
    rgba(107, 76, 122, 0.3),
    rgba(138, 107, 152, 0.3));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  filter: blur(20px);
}

.zeph-portfolio-item:hover {
  transform: scale(1.02);
  border-color: rgba(212, 165, 116, 0.5);
  box-shadow: 
    0 16px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(232, 213, 183, 0.1) inset,
    0 0 120px rgba(212, 165, 116, 0.2);
}

.zeph-portfolio-item:hover::before {
  opacity: 1;
}

/* Full-bleed background image */
.zeph-portfolio-item__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.zeph-portfolio-item__image svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Dark overlay */
.zeph-portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(15, 11, 21, 0.3) 0%,
    rgba(15, 11, 21, 0.5) 50%,
    rgba(15, 11, 21, 0.85) 100%);
  z-index: 1;
  transition: background 0.5s ease;
}

.zeph-portfolio-item:hover .zeph-portfolio-item__overlay {
  background: linear-gradient(to bottom,
    rgba(15, 11, 21, 0.2) 0%,
    rgba(15, 11, 21, 0.4) 50%,
    rgba(15, 11, 21, 0.8) 100%);
}

/* Content positioned at bottom */
.zeph-portfolio-item__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-md);
  z-index: 2;
  background: linear-gradient(to top,
    rgba(15, 11, 21, 0.95) 0%,
    rgba(15, 11, 21, 0.8) 50%,
    transparent 100%);
}

.zeph-portfolio-item__title {
  font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem);
  font-weight: 700;
  color: var(--zeph-text);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.zeph-portfolio-item__description {
  color: var(--zeph-text-muted);
  line-height: 1.6;
  font-size: clamp(1rem, 1.2vw + 0.875rem, 1.125rem);
  margin: 0;
}

.zeph-portfolio-item__tags {
  display: flex; 
  flex-wrap: wrap; 
  gap: var(--zeph-space-sm);
  list-style: none;
  padding: 0;
  margin: var(--zeph-space-sm) 0 0;
}

/* Glassmorphism tags */
.zeph-portfolio-item__tags li {
  padding: clamp(0.5rem, 1vw, 0.75rem) clamp(1rem, 1.5vw, 1.25rem);
  background: rgba(15, 11, 21, 0.6);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: var(--zeph-radius-full);
  font-size: clamp(0.875rem, 1vw + 0.75rem, 0.9375rem);
  color: var(--zeph-accent);
  font-weight: 500;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(232, 213, 183, 0.1) inset,
    0 0 20px rgba(212, 165, 116, 0.1) inset;
  transition: all 0.3s ease;
}

.zeph-portfolio-item__tags li:hover {
  background: rgba(15, 11, 21, 0.75);
  border-color: rgba(212, 165, 116, 0.5);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(232, 213, 183, 0.15) inset,
    0 0 30px rgba(212, 165, 116, 0.15) inset;
}

/* Process */
.zeph-section__header--process {
  text-align: left;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.zeph-section__title--process {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 700;
  color: #E8D5B7;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.zeph-process {
  max-width: 1000px;
  margin-inline: 0;
  position: relative;
}

.zeph-process__timeline {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  position: relative;
  padding-left: clamp(3rem, 5vw, 4.5rem);
  margin-left: 0;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.zeph-process__timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, 
    rgba(107, 76, 122, 0.6) 0%,
    rgba(212, 165, 116, 0.5) 50%,
    rgba(107, 76, 122, 0.4) 100%);
}

.zeph-process-step {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.zeph-process-step__marker {
  position: absolute;
  left: calc(-1 * clamp(3rem, 5vw, 4.5rem) + 12px);
  top: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F0B15;
  border: 3px solid rgba(107, 76, 122, 0.6);
  border-radius: 50%;
  z-index: 2;
}

.zeph-process-step__number {
  font-size: clamp(1.25rem, 2vw + 0.75rem, 1.75rem);
  font-weight: 700;
  color: #E8D5B7;
  font-family: system-ui, -apple-system, sans-serif;
}

.zeph-process-step__content {
  max-width: 500px;
  width: 100%;
}

.zeph-process-step__title {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 700;
  color: #E8D5B7;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, sans-serif;
}

.zeph-process-step__title-word {
  display: block;
}

.zeph-process-step__description {
  color: #B8A68A;
  line-height: 1.6;
  margin: 0;
  font-size: clamp(1rem, 1.2vw + 0.875rem, 1.125rem);
  max-width: 420px;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 400;
}

/* Testimonials */
.zeph-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--zeph-space-lg);
}

.zeph-testimonial {
  padding: var(--zeph-space-lg);
  background: var(--zeph-surface);
  border: 1px solid var(--zeph-border);
  border-radius: var(--zeph-radius-lg);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-md);
}

.zeph-testimonial__quote {
  font-size: var(--zeph-font-body);
  color: var(--zeph-text);
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

.zeph-testimonial__quote::before {
  content: '"';
  font-size: 3em;
  line-height: 0;
  color: var(--zeph-primary);
  opacity: 0.5;
  vertical-align: -0.3em;
}

.zeph-testimonial__author {
  margin-top: auto;
  padding-top: var(--zeph-space-md);
  border-top: 1px solid var(--zeph-border);
}

.zeph-testimonial__name {
  display: block;
  font-weight: 600;
  color: var(--zeph-text);
  font-style: normal;
}

.zeph-testimonial__role {
  display: block;
  font-size: var(--zeph-font-small);
  color: var(--zeph-text-muted);
  margin-top: var(--zeph-space-xs);
}

/* Metrics */
.zeph-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--zeph-space-lg);
}

.zeph-metric-card {
  padding: var(--zeph-space-xl);
  background: var(--zeph-surface);
  border: 1px solid var(--zeph-border);
  border-radius: var(--zeph-radius-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.zeph-metric-card:hover {
  border-color: var(--zeph-accent);
  transform: translateY(-4px);
  box-shadow: var(--zeph-shadow-lg);
}

.zeph-metric-card__value {
  display: block;
  font-size: var(--zeph-font-display);
  font-weight: 700;
  color: var(--zeph-accent);
  line-height: 1;
  margin-bottom: var(--zeph-space-sm);
}

.zeph-metric-card__label {
  font-size: var(--zeph-font-body);
  font-weight: 600;
  color: var(--zeph-text);
  margin: 0 0 var(--zeph-space-xs);
}

.zeph-metric-card__context {
  font-size: var(--zeph-font-small);
  color: var(--zeph-text-muted);
  margin: 0;
}

/* FAQ */
.zeph-faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: var(--zeph-space-md);
}

.zeph-faq-item {
  background: var(--zeph-surface);
  border: 1px solid var(--zeph-border);
  border-radius: var(--zeph-radius-md);
  overflow: hidden;
}

.zeph-faq-item__question {
  padding: var(--zeph-space-lg);
  font-size: var(--zeph-font-body);
  font-weight: 600;
  color: var(--zeph-text);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

.zeph-faq-item__question::-webkit-details-marker {
  display: none;
}

.zeph-faq-item__question::after {
  content: '+';
  position: absolute;
  right: var(--zeph-space-lg);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: var(--zeph-primary);
  transition: transform 0.2s ease;
}

.zeph-faq-item[open] .zeph-faq-item__question::after {
  transform: translateY(-50%) rotate(45deg);
}

.zeph-faq-item__question:hover {
  background: rgba(107, 76, 122, 0.05);
}

.zeph-faq-item__question:focus-visible {
  outline: 2px solid var(--zeph-primary);
  outline-offset: -2px;
}

.zeph-faq-item__answer {
  padding: 0 var(--zeph-space-lg) var(--zeph-space-lg);
  color: var(--zeph-text-muted);
  line-height: 1.7;
}

.zeph-faq-item__answer p {
  margin: 0;
}

/* About */
.zeph-about {
  max-width: 900px;
  margin-inline: auto;
}

.zeph-about__content {
  margin-top: var(--zeph-space-lg);
}

.zeph-about__text {
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-md);
}

.zeph-about__text p {
  font-size: var(--zeph-font-body);
  color: var(--zeph-text-muted);
  line-height: 1.8;
  margin: 0;
}

/* Benefits */
.zeph-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--zeph-space-lg);
  margin-top: var(--zeph-space-xl);
}

.zeph-benefit-item {
  padding: var(--zeph-space-lg);
  background: var(--zeph-surface);
  border: 1px solid var(--zeph-border);
  border-radius: var(--zeph-radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.zeph-benefit-item[data-scroll].zeph-service-item--visible,
.zeph-benefit-item.zeph-service-item--visible {
  opacity: 1;
  transform: translateY(0);
}

.zeph-benefit-item:hover {
  border-color: var(--zeph-primary);
  box-shadow: var(--zeph-shadow-glow);
  transform: translateY(-4px);
}

.zeph-benefit-item__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--zeph-space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zeph-primary);
  border-radius: var(--zeph-radius-full);
  color: var(--zeph-text);
  transition: all 0.3s ease;
}

.zeph-benefit-item:hover .zeph-benefit-item__icon {
  background: var(--zeph-accent);
  transform: scale(1.1);
}

.zeph-benefit-item__icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 2;
}

.zeph-benefit-item__title {
  font-size: var(--zeph-font-h3);
  font-weight: 600;
  color: var(--zeph-text);
  margin: 0 0 var(--zeph-space-sm);
}

.zeph-benefit-item__description {
  font-size: var(--zeph-font-body);
  color: var(--zeph-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Contact */
.zeph-section--contact {
  background: linear-gradient(180deg, var(--zeph-bg), var(--zeph-surface));
}

.zeph-contact {
  max-width: 1200px;
  margin-inline: auto;
}

.zeph-contact__map-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--zeph-space-xl);
  margin-bottom: var(--zeph-space-xl);
}

.zeph-contact__map {
  width: 100%;
  height: 400px;
  border-radius: var(--zeph-radius-lg);
  overflow: hidden;
  border: 1px solid var(--zeph-border);
  background: var(--zeph-surface);
}

.zeph-contact__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) brightness(0.9);
  transition: filter 0.3s ease;
}

.zeph-contact__map:hover iframe {
  filter: grayscale(0%) brightness(1);
}

.zeph-contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-lg);
}

.zeph-contact__item-title {
  font-size: var(--zeph-font-h3);
  font-weight: 600;
  color: var(--zeph-accent);
  margin: 0 0 var(--zeph-space-sm);
}

.zeph-contact__item-content {
  color: var(--zeph-text-muted);
  line-height: 1.7;
  margin: 0;
}

.zeph-contact__item-content a {
  color: var(--zeph-accent);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.2s ease;
}

.zeph-contact__item-content a:hover {
  border-bottom-color: var(--zeph-accent);
}

.zeph-contact__form {
  padding: var(--zeph-space-lg);
  background: var(--zeph-surface);
  border: 1px solid var(--zeph-border);
  border-radius: var(--zeph-radius-lg);
}

.zeph-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--zeph-space-md);
}

.zeph-form-field {
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-xs);
}

.zeph-form-field--full {
  grid-column: 1 / -1;
}

.zeph-form-label {
  font-size: var(--zeph-font-small);
  font-weight: 500;
  color: var(--zeph-text);
}

.zeph-form-input {
  padding: var(--zeph-space-sm) var(--zeph-space-md);
  background: var(--zeph-bg);
  border: 1px solid var(--zeph-border);
  border-radius: var(--zeph-radius-md);
  color: var(--zeph-text);
  font-size: var(--zeph-font-body);
  font-family: inherit;
  transition: all 0.2s ease;
}

.zeph-form-input:focus {
  outline: none;
  border-color: var(--zeph-primary);
  box-shadow: 0 0 0 3px rgba(107, 76, 122, 0.2);
}

.zeph-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.zeph-form-actions {
  margin-top: var(--zeph-space-md);
}

/* Footer */
.zeph-footer {
  padding-block: var(--zeph-space-xl);
  background: var(--zeph-surface);
  border-top: 1px solid var(--zeph-border);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.zeph-footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--zeph-space-xl);
}

.zeph-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-sm);
}

.zeph-logo--footer {
  margin-bottom: var(--zeph-space-xs);
}

.zeph-footer__tagline {
  font-size: var(--zeph-font-small);
  color: var(--zeph-text-muted);
  margin: 0;
}

.zeph-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-sm);
}

.zeph-footer__nav-list a {
  color: var(--zeph-text-muted);
  text-decoration: none;
  font-size: var(--zeph-font-small);
  transition: color 0.2s ease;
}

.zeph-footer__nav-list a:hover {
  color: var(--zeph-text);
}

.zeph-footer__legal {
  display: flex;
  flex-direction: column;
  gap: var(--zeph-space-xs);
}

.zeph-footer__copyright,
.zeph-footer__info {
  font-size: var(--zeph-font-small);
  color: var(--zeph-text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .zeph-case-study__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .zeph-case-study__intro-card {
    grid-column: span 6;
  }

  .zeph-case-study__visual-card {
    grid-column: span 6;
    grid-row: span 2;
  }

  .zeph-case-study__results-card {
    grid-column: span 3;
    grid-row: span 4;
  }

  .zeph-case-study__challenge-card {
    grid-column: span 3;
    grid-row: span 2;
  }

  .zeph-case-study__solution-card {
    grid-column: span 3;
    grid-row: span 2;
  }

  .zeph-portfolio {
    grid-template-columns: repeat(6, 1fr);
  }

  .zeph-portfolio-item--hero {
    grid-column: span 6;
  }

  .zeph-portfolio-item--masonry {
    grid-column: span 3;
  }

  .zeph-portfolio-item--masonry:nth-child(3) {
    margin-top: 0;
  }

  .zeph-portfolio-item--masonry:nth-child(5) {
    margin-top: 0;
  }
  
  .zeph-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .zeph-container {
    padding-inline: var(--zeph-space-sm);
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .zeph-header__inner {
    flex-wrap: wrap;
  }
  
  .zeph-nav__list {
    width: 100%;
    justify-content: flex-start;
  }

  /* Ensure header has enough height on mobile */
  .zeph-header {
    min-height: 80px;
  }

  .zeph-header__inner {
    min-height: 80px;
  }
  
  .zeph-hero {
    padding-block: clamp(3rem, 8vw, 5rem);
    /* Increased padding-top to account for fixed header height on mobile */
    padding-top: clamp(7rem, 15vw, 9rem);
    min-height: auto;
    /* Scroll margin for mobile navigation */
    scroll-margin-top: 120px;
  }

  /* Adjust scroll margin for all sections on mobile */
  .zeph-section {
    scroll-margin-top: 120px;
  }
  
  .zeph-hero__title {
    font-size: clamp(2.5rem, 10vw + 1rem, 4.5rem);
    letter-spacing: -0.03em;
  }
  
  .zeph-hero__layout {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }

  .zeph-hero__content {
    max-width: 100%;
  }

  .zeph-hero__visual {
    height: clamp(300px, 40vh, 400px);
    order: -1;
  }

  .zeph-hero__3d-shape {
    width: clamp(250px, 35vw, 350px);
    height: clamp(250px, 35vw, 350px);
  }
  
  .zeph-hero__grid-bg {
    background-size: 40px 40px;
  }
  
  .zeph-section--process {
    padding-block: clamp(3rem, 8vw, 5rem);
  }
  
  .zeph-section__header--process {
    margin-bottom: clamp(2rem, 5vw, 3rem);
  }
  
  .zeph-section__title--process {
    font-size: clamp(2rem, 6vw + 0.5rem, 3rem);
  }
  
  .zeph-process__timeline {
    padding-left: clamp(2.5rem, 6vw, 3.5rem);
    gap: clamp(2.5rem, 6vw, 4rem);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .zeph-process__timeline::before {
    left: 20px;
  }
  
  .zeph-process-step {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .zeph-process-step__marker {
    left: calc(-1 * clamp(2.5rem, 6vw, 3.5rem) + 8px);
    width: 40px;
    height: 40px;
  }
  
  .zeph-process-step__number {
    font-size: clamp(1.125rem, 2vw + 0.75rem, 1.5rem);
  }
  
  .zeph-process-step__content {
    max-width: 100%;
  }
  
  .zeph-process-step__title {
    font-size: clamp(1.75rem, 5vw + 0.5rem, 2.5rem);
  }
  
  .zeph-process-step__description {
    max-width: 100%;
    font-size: clamp(0.9375rem, 1.2vw + 0.8125rem, 1.0625rem);
  }

  .zeph-case-study__grid {
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
  }

  .zeph-case-study__intro-card,
  .zeph-case-study__challenge-card,
  .zeph-case-study__solution-card,
  .zeph-case-study__results-card {
    grid-column: span 1;
    grid-row: span 1;
  }

  .zeph-case-study__results-card {
    grid-row: span 3;
  }

  .zeph-case-study__metric-number {
    font-size: clamp(3rem, 8vw + 1rem, 5rem);
  }

  .zeph-case-study__metric-number {
    font-size: clamp(2.5rem, 5vw + 0.75rem, 4rem);
  }

  .zeph-form-grid {
    grid-template-columns: 1fr;
  }
  
  .zeph-footer__content {
    grid-template-columns: 1fr;
    gap: var(--zeph-space-lg);
  }
  
  .zeph-section {
    padding-block: var(--zeph-space-xl);
  }

  .zeph-portfolio {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
  }

  .zeph-portfolio-item--hero {
    min-height: clamp(300px, 40vh, 450px);
  }

  .zeph-portfolio-item--masonry {
    margin-top: 0 !important;
    min-height: clamp(280px, 35vh, 400px);
  }

  .zeph-portfolio-item__content {
    padding: clamp(1.5rem, 3vw, 2.5rem);
  }

  .zeph-service-item {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "visual"
      "content" !important;
    gap: clamp(2rem, 4vw, 3rem);
    min-height: auto;
  }

  .zeph-service-item--left,
  .zeph-service-item--right {
    grid-template-areas: 
      "visual"
      "content" !important;
  }

  .zeph-service-item__content {
    max-width: 100%;
    text-align: left;
  }

  .zeph-service-item__title {
    font-size: clamp(2rem, 6vw + 0.5rem, 3rem);
  }

  .zeph-service-item__icon {
    width: clamp(120px, 25vw, 180px);
    height: clamp(120px, 25vw, 180px);
  }
}

@media (max-width: 480px) {
  .zeph-container {
    padding-inline: var(--zeph-space-xs);
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Ensure header has enough height on small mobile */
  .zeph-header {
    min-height: 90px;
  }

  .zeph-header__inner {
    min-height: 90px;
  }

  .zeph-hero {
    padding-block: clamp(2.5rem, 6vw, 4rem);
    /* Increased padding-top to account for fixed header height on small mobile */
    padding-top: clamp(6.5rem, 14vw, 8.5rem);
    /* Scroll margin for small mobile navigation */
    scroll-margin-top: 110px;
  }

  /* Adjust scroll margin for all sections on small mobile */
  .zeph-section {
    scroll-margin-top: 110px;
  }
  
  .zeph-hero__layout {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
  }

  .zeph-hero__visual {
    height: clamp(250px, 35vh, 350px);
    order: -1;
  }

  .zeph-hero__3d-shape {
    width: clamp(200px, 30vw, 280px);
    height: clamp(200px, 30vw, 280px);
  }

  .zeph-hero__title {
    font-size: clamp(2rem, 8vw + 0.5rem, 3.5rem);
    letter-spacing: -0.02em;
  }
  
  .zeph-hero__actions {
    flex-direction: column;
  }
  
  .zeph-hero__actions .zeph-btn {
    width: 100%;
  }
  
  .zeph-hero__grid-bg {
    background-size: 30px 30px;
  }
  
  .zeph-service-item {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "visual"
      "content" !important;
    gap: clamp(2rem, 4vw, 3rem);
    min-height: auto;
    text-align: center;
  }

  .zeph-service-item--left,
  .zeph-service-item--right {
    grid-template-areas: 
      "visual"
      "content" !important;
  }

  .zeph-service-item__content {
    max-width: 100%;
    text-align: left;
  }

  .zeph-service-item__title {
    font-size: clamp(2rem, 6vw + 0.5rem, 3rem);
  }

  .zeph-service-item__icon {
    width: clamp(120px, 25vw, 180px);
    height: clamp(120px, 25vw, 180px);
  }

  .zeph-portfolio {
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 2.5vw, 2rem);
  }

  .zeph-portfolio-item--hero {
    grid-column: span 1;
    min-height: clamp(350px, 45vh, 500px);
  }

  .zeph-portfolio-item--masonry {
    grid-column: span 1;
    margin-top: 0 !important;
  }

  .zeph-portfolio-item--masonry:nth-child(2),
  .zeph-portfolio-item--masonry:nth-child(3),
  .zeph-portfolio-item--masonry:nth-child(4),
  .zeph-portfolio-item--masonry:nth-child(5) {
    min-height: clamp(300px, 40vh, 450px);
  }

  .zeph-testimonials,
  .zeph-metrics {
    grid-template-columns: 1fr;
  }

  .zeph-benefits {
    grid-template-columns: 1fr;
    gap: var(--zeph-space-sm);
  }

  .zeph-benefit-item {
    padding: var(--zeph-space-md);
  }

  .zeph-benefit-item__icon {
    width: 60px;
    height: 60px;
  }

  .zeph-benefit-item__icon svg {
    width: 30px;
    height: 30px;
  }

  .zeph-contact__map-wrapper {
    grid-template-columns: 1fr;
    gap: var(--zeph-space-md);
  }

  .zeph-contact__map {
    height: 250px;
  }

  .zeph-about__text p {
    font-size: var(--zeph-font-small);
  }
  
  .zeph-hero__stats {
    grid-template-columns: 1fr;
  }
  
  .zeph-section {
    padding-block: var(--zeph-space-lg);
  }
  
  .zeph-section--process {
    padding-block: clamp(2rem, 5vw, 3rem);
  }
  
  .zeph-section__title--process {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2rem);
  }
  
  .zeph-process__timeline {
    padding-left: clamp(1.75rem, 4vw, 2.5rem);
    gap: clamp(2rem, 4vw, 2.5rem);
    margin-left: 0;
  }
  
  .zeph-process__timeline::before {
    left: 12px;
  }
  
  .zeph-process-step {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .zeph-process-step__marker {
    left: calc(-1 * clamp(1.75rem, 4vw, 2.5rem) + 0px);
    width: 28px;
    height: 28px;
  }
  
  .zeph-process-step__number {
    font-size: clamp(0.9375rem, 1.5vw + 0.75rem, 1.125rem);
  }
  
  .zeph-process-step__title {
    font-size: clamp(1.25rem, 3.5vw + 0.5rem, 1.75rem);
  }
  
  .zeph-process-step__description {
    font-size: clamp(0.875rem, 1vw + 0.75rem, 0.9375rem);
    max-width: 100%;
  }
}

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

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--zeph-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--zeph-primary);
  outline-offset: 2px;
}
