/* ============================================
   LISTELLA — Homepage Styles v2
   Matched to reference: listella.co
   ============================================ */

/* === Smooth Scroll === */
html { scroll-behavior: smooth; }

/* === Variables === */
.ls-home {
  --ls-bg: #000;
  --ls-color: #fff;
  --ls-color-rgb: 255,255,255;
  --ls-bg-rgb: 0,0,0;
  --ls-padding: 30px;
  --ls-home-padding: 20px;
  --ls-heading-font: 'Listella-Heading', 'Helvetica Neue', sans-serif;
  --ls-ui-font: 'Listella-UI', 'Helvetica Neue', sans-serif;
  --ls-serif-font: 'Listella-Serif', 'Georgia', serif;
  --ls-blackletter-font: 'Listella-Blackletter', serif;
  --ls-condensed-font: 'Listella-Condensed', 'Impact', sans-serif;
  --ls-mono-font: 'Courier', monospace;
  --ls-toggle-scale: 16px;
}
@media (min-width: 580px) { .ls-home { --ls-home-padding: 5vw; } }
@media (min-width: 1600px) { .ls-home { --ls-home-padding: 10vw; } }
@media (max-width: 800px) { .ls-home { --ls-padding: 20px; } }

.ls-home.ls-light {
  --ls-bg: #f5f5f5; --ls-color: #111;
  --ls-color-rgb: 17,17,17; --ls-bg-rgb: 245,245,245;
}

/* === Reset === */
.ls-home, .ls-home * { box-sizing: border-box; margin: 0; padding: 0; }
.ls-home {
  background: var(--ls-bg); color: var(--ls-color);
  font-family: var(--ls-ui-font); overflow-x: hidden;
  position: relative; width: 100%; -webkit-font-smoothing: antialiased;
  padding-bottom: 120px;
}
.ls-home a { display: inline-block; text-decoration: none; color: inherit; }
.ls-home button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }

/* === Intro Overlay === */
.ls-intro-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #000; z-index: 99999; display: flex;
  align-items: center; justify-content: center; padding: 15vh 15vw;
}
.ls-intro-overlay.ls-intro-hidden { pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
/* Intro fullscreen videos */
.ls-intro-video {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  min-width: 100%; min-height: 100%;
  object-fit: cover; pointer-events: none; z-index: 0;
}
/* Hide native video controls / play button on all browsers */
.ls-intro-video::-webkit-media-controls { display: none !important; }
.ls-intro-video::-webkit-media-controls-panel { display: none !important; }
.ls-intro-video::-webkit-media-controls-play-button { display: none !important; }
.ls-intro-video::-webkit-media-controls-start-playback-button { display: none !important; }
.ls-intro-video::-moz-media-controls { display: none !important; }
.ls-intro-counter {
  display: none;
}

/* === Navigation === */
.ls-nav {
  position: fixed; top: 0; left: 0; width: 100vw;
  padding: var(--ls-padding); z-index: 10000;
  display: flex; opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.ls-nav.ls-nav-visible { opacity: 1; }
.ls-nav.ls-nav-visible a { pointer-events: auto; }
.ls-nav-inner { display: flex; align-items: flex-start; width: 100%; }
.ls-nav-group { display: flex; flex: 1; align-items: flex-start; gap: 30px; }
.ls-nav-group:last-child { justify-content: flex-end; }
.ls-nav-link {
  cursor: pointer; font-family: var(--ls-ui-font); font-size: 14px;
  font-weight: 400; letter-spacing: 0.02em; position: relative; text-transform: uppercase;
}
.ls-nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 100%;
  height: 1px; background: var(--ls-color); transform: scaleX(0);
  transform-origin: right; transition: transform 0.3s ease;
}
.ls-nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.ls-logo { flex: 0 0 auto; padding: 0 40px; }
.ls-logo svg > * { fill: var(--ls-color); }

/* Mobile Nav */
.ls-mobile-nav {
  display: none; position: fixed; top: 0; left: 0; width: 100%;
  z-index: 10000; opacity: 0; transition: opacity 0.5s ease;
}
.ls-mobile-nav.ls-nav-visible { opacity: 1; }
.ls-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 75px; padding: 0 var(--ls-padding); width: 100%; z-index: 1;
}
.ls-menu-toggle {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; width: 24px; height: 24px; pointer-events: auto;
}
.ls-hamburger-line {
  display: block; background-color: var(--ls-color); height: 1px;
  width: 100%; transform-origin: center; transition: all 0.3s ease;
}
.ls-menu-toggle.active .ls-hamburger-line:first-child { transform: rotate(45deg) translate(3px, 3px); }
.ls-menu-toggle.active .ls-hamburger-line:last-child { transform: rotate(-45deg) translate(2px, -2px); }
.ls-mobile-menu-content {
  position: fixed; top: 0; left: 0; width: 100%; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; font-family: var(--ls-ui-font); font-size: 18px;
  letter-spacing: 0.02em; text-transform: uppercase;
  backdrop-filter: blur(10px); background: rgba(var(--ls-bg-rgb), 0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease 0.3s; z-index: 0;
}
.ls-mobile-menu-content.ls-menu-open { opacity: 1; pointer-events: auto; transition: opacity 0.3s ease; }
.ls-menu-close {
  position: absolute; top: 24px; right: 24px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--ls-color); cursor: pointer;
  font-size: 28px; line-height: 1; padding: 0; z-index: 10;
}
body.ls-menu-locked { overflow: hidden; }
@media (max-width: 800px) { .ls-nav { display: none !important; } .ls-mobile-nav { display: block; } }
@media (min-width: 801px) { .ls-mobile-nav { display: none !important; } }

/* === HERO === */
.ls-hero {
  position: relative; width: 100%; height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  cursor: none;
}
/* Glass dot cursor for hero */
.ls-hero-cursor {
  position: fixed; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.2s ease;
}
.ls-hero-cursor.ls-hero-cursor-visible { opacity: 1; }

/* Hero background video */
.ls-hero-video {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover; z-index: 1;
  opacity: 0.4;
  pointer-events: none;
}

/* Hero info (time/weather) */
.ls-hero-info {
  position: absolute; z-index: 2;
  font-family: var(--ls-ui-font); font-size: 12px;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: rgba(var(--ls-color-rgb), 0.5); line-height: 1.5;
}
.ls-hero-info-left { bottom: var(--ls-padding); left: var(--ls-padding); }
.ls-hero-info-right { bottom: var(--ls-padding); right: var(--ls-padding); text-align: right; }

/* Hero Icons — overlapping the logotype */
.ls-icon-item {
  position: absolute; pointer-events: auto; cursor: grab;
  will-change: transform;
}
.ls-icon-item:active { cursor: grabbing; }
.ls-icon-item img {
  width: 100%; height: 100%; object-fit: contain;
  pointer-events: none;
}
/* Chess — top right, 20% bigger */
.ls-icon-1 { width: clamp(144px, 21.6vw, 360px); top: 12%;  right: 14%; z-index: 2; }
/* Book — top left, 30% bigger */
.ls-icon-2 { width: clamp(164px, 23.9vw, 419px); top: 8%;  left: 18%;  z-index: 2; }
/* Laptop — bottom left, 25% bigger */
.ls-icon-3 { width: clamp(150px, 21.3vw, 350px); bottom: 8%; left: 10%; z-index: 5; }
/* Porsche — bottom right, 20% bigger */
.ls-icon-4 { width: clamp(173px, 24.5vw, 403px); bottom: 12%; right: 12%; z-index: 5; }

/* Floating glove between intro paragraph and Recent Work */
.ls-floating-glove-wrapper {
  position: relative;
  height: 120px;
  max-width: 1400px;
  margin: -20px auto 0;
}
.ls-icon-5 {
  position: absolute;
  width: clamp(140px, 18.7vw, 281px);
  left: 6%;
  top: 0;
  z-index: 2;
  pointer-events: auto;
  cursor: grab;
  will-change: transform;
}
.ls-icon-5:active { cursor: grabbing; }
.ls-icon-5 img {
  width: 100%; height: 100%; object-fit: contain;
  pointer-events: none;
}

/* Hero Headline Text */
.ls-hero-headline {
  position: relative; z-index: 3; text-align: center;
  max-width: 900px; padding: 0 30px;
  pointer-events: none;
}
.ls-hero-title {
  font-family: var(--ls-heading-font); font-weight: 900;
  font-size: clamp(32px, 5vw, 72px); line-height: 1.1;
  color: var(--ls-color); letter-spacing: -0.02em;
}

/* === Main Content === */
.ls-main-content { opacity: 0; transition: opacity 0.5s ease; }
.ls-main-content.ls-content-visible { opacity: 1; }

/* === Text Sections === */
.ls-text-section {
  padding: 12vh var(--ls-home-padding);
  display: flex; align-items: center; gap: 5vw;
}
.ls-text-inner { flex: 1; max-width: 55%; }
.ls-text-section:not(.ls-text-with-image) .ls-text-inner { max-width: 65%; }

.ls-heading {
  font-family: var(--ls-heading-font); font-weight: 900;
  line-height: 1.05; font-size: clamp(26px, 3.5vw, 55px); color: var(--ls-color);
}
.ls-heading b {
  display: inline-block; font-family: var(--ls-blackletter-font);
  font-weight: 400; letter-spacing: 0.024em; padding-right: 0.15vw;
  position: relative; transform: scale(1.195) translateY(-2.75%);
}
.ls-heading i { color: transparent; -webkit-text-stroke: 1px var(--ls-color); font-style: normal; }

/* Companion image next to text */
.ls-text-image {
  flex: 0 0 35%; max-width: 35%; display: flex;
  align-items: center; justify-content: center;
}
.ls-text-image img { width: 100%; height: auto; object-fit: contain; }

/* Reveal animations */
.ls-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.ls-reveal.ls-revealed { opacity: 1; transform: translateY(0); }
.ls-heading.ls-reveal { opacity: 0; transform: none; }
.ls-heading.ls-reveal.ls-revealed { opacity: 1; }
.ls-word {
  display: inline-block; opacity: 0; transform: translateY(15px);
  transition: opacity 0.35s ease, transform 0.35s ease; margin-right: 0.22em;
}
.ls-word.ls-word-visible { opacity: 1; transform: translateY(0); }

/* === Pen Mark Annotations === */
.ls-pen-word {
  position: relative;
  display: inline;
  white-space: nowrap;
}

.ls-pen-svg {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}

.ls-pen-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.ls-pen-path.ls-pen-animate {
  animation: ls-pen-draw 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ls-pen-draw {
  to { stroke-dashoffset: 0; }
}

/* Underline on "attention" */
.ls-pen-underline-svg {
  bottom: -2px;
  left: -4%;
  width: 108%;
  height: 16px;
}

/* Check mark on "trust" */
.ls-pen-check-svg {
  top: -30%;
  right: -45%;
  width: 40px;
  height: 36px;
}

/* Circle around "drive action" */
.ls-pen-circle-svg {
  top: -25%;
  left: -8%;
  width: 116%;
  height: 150%;
}

@media (max-width: 800px) {
  .ls-pen-check-svg {
    width: 28px;
    height: 25px;
    right: -35%;
    top: -25%;
  }
  .ls-pen-underline-svg {
    height: 12px;
  }
}

/* === Marquee Gallery === */
.ls-marquee-section { padding: 5vh 0; overflow: hidden; }
.ls-marquee-track {
  display: flex; gap: 20px;
  animation: ls-marquee-scroll 30s linear infinite; width: max-content;
}
.ls-marquee-track:hover { animation-play-state: paused; }
.ls-marquee-item {
  flex-shrink: 0; width: clamp(200px, 20vw, 350px);
  height: clamp(200px, 20vw, 350px); border-radius: 8px; overflow: hidden;
}
.ls-marquee-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ls-marquee-item:hover img { transform: scale(1.05); }
@keyframes ls-marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === Slider === */
.ls-slider-section { padding: 10vh var(--ls-home-padding); }
.ls-slider-container { border: 1px solid rgba(var(--ls-color-rgb), 0.2); position: relative; overflow: hidden; }
.ls-slider-label {
  font-family: var(--ls-ui-font); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 20px 25px; color: rgba(var(--ls-color-rgb), 0.5);
}
.ls-slider-viewport { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.ls-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease;
  display: flex; align-items: center; justify-content: center;
}
.ls-slide.ls-slide-active { opacity: 1; }
.ls-slide-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center; filter: grayscale(1); opacity: 0.3;
}
.ls-slide-bg::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, #000, transparent);
}
.ls-slide-main-img {
  position: relative; z-index: 2; width: 27%; max-height: 70vh; aspect-ratio: 3/4;
}
.ls-slide-main-img img { width: 100%; height: 100%; object-fit: cover; }
.ls-slide-info {
  position: absolute; left: 5%; top: 50%; transform: translateY(-50%); z-index: 2; max-width: 28%;
}
.ls-slide-category {
  font-family: var(--ls-ui-font); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: rgba(var(--ls-color-rgb), 0.7);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.ls-slide-category::before { content: '•'; font-weight: 900; transform: scale(1.5); }
.ls-slide-title {
  font-family: var(--ls-heading-font); font-weight: 600;
  font-size: clamp(18px, 2.5vw, 36px); text-transform: uppercase;
  line-height: 0.85; letter-spacing: 0.02em; margin-bottom: 15px;
}
.ls-slide-desc { font-family: var(--ls-ui-font); font-size: clamp(10px, 0.7vw, 13px); line-height: 1.3; color: #ababab; }
.ls-slide-btn {
  display: inline-block; background: #ababab; color: var(--ls-bg);
  font-family: var(--ls-ui-font); font-size: clamp(10px, 0.7vw, 13px);
  padding: 8px 14px; margin-top: 15px; text-transform: uppercase;
  letter-spacing: 0.02em; cursor: pointer; transition: background 0.3s ease;
}
.ls-slide-btn:hover { background: #e1ff46; }
.ls-slider-controls {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ls-slider-counter { font-family: var(--ls-mono-font); font-size: clamp(24px, 3vw, 40px); line-height: 1; }
.ls-slider-arrow {
  width: clamp(30px, 2.5vw, 40px); height: clamp(30px, 2.5vw, 40px);
  border: 1px solid rgba(var(--ls-color-rgb), 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(14px, 1.5vw, 20px); cursor: pointer;
  transition: border-color 0.3s ease; color: var(--ls-color);
}
.ls-slider-arrow:hover { border-color: var(--ls-color); }
.ls-slider-bottom-labels {
  display: flex; gap: 20px; padding: 15px 25px;
  font-family: var(--ls-ui-font); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(var(--ls-color-rgb), 0.4); border-top: 1px solid rgba(var(--ls-color-rgb), 0.1);
}

/* === Icons Grid === */
.ls-icons-grid {
  padding: 10vh var(--ls-home-padding);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px;
}
@media (max-width: 800px) { .ls-icons-grid { grid-template-columns: repeat(2, 1fr); } }
.ls-grid-item { aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; }
.ls-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ls-grid-item:hover img { transform: scale(1.05); }

/* === Body Text === */
.ls-body-text {
  font-family: var(--ls-ui-font); font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.7; color: rgba(var(--ls-color-rgb), 0.7); max-width: 700px;
}
.ls-text-narrow { padding: 4vh var(--ls-home-padding) 8vh; }
.ls-text-full { max-width: 100% !important; }

/* === Centered Intro Paragraph === */
.ls-intro-paragraph {
  padding: 10vh var(--ls-home-padding) 8vh;
  display: flex; justify-content: center; text-align: center;
}
.ls-intro-text {
  font-family: var(--ls-ui-font); font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.8; color: rgba(var(--ls-color-rgb), 0.6);
  max-width: 700px;
}

/* === Section Headers === */
.ls-section-header { position: relative; padding: 0 var(--ls-home-padding); margin-bottom: 50px; text-align: center; overflow: visible; }
.ls-section-title {
  font-family: var(--ls-heading-font); font-weight: 900;
  font-size: clamp(32px, 4vw, 64px); text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1;
}
.ls-section-subtitle {
  font-family: var(--ls-ui-font); font-size: clamp(13px, 1vw, 16px);
  color: rgba(var(--ls-color-rgb), 0.5); margin-top: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* === Work Section === */
.ls-work-section { padding: 12vh 0; }

/* Filters */
.ls-work-filters {
  display: flex; gap: 8px; padding: 0 var(--ls-home-padding); margin-bottom: 40px;
  flex-wrap: wrap; justify-content: center;
}
button.ls-filter-btn {
  font-family: var(--ls-ui-font); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 12px 28px; border: 1px solid rgba(var(--ls-color-rgb), 0.5);
  color: rgba(var(--ls-color-rgb), 0.6); cursor: pointer;
  transition: all 0.3s ease; border-radius: 100px; background: transparent;
}
button.ls-filter-btn:hover {
  border-color: var(--ls-color); color: var(--ls-color);
}
button.ls-filter-btn.ls-filter-active {
  border-color: var(--ls-color); color: var(--ls-bg);
  background: var(--ls-color);
}

/* Project Grid */
.ls-work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 0 var(--ls-home-padding);
}
.ls-project-card {
  position: relative; overflow: hidden; display: block;
  aspect-ratio: 16/10; cursor: none;
  transition: opacity 0.4s ease;
}
.ls-project-card.ls-filtered-out {
  display: none;
}
.ls-project-img {
  width: 100%; height: 100%; overflow: hidden;
}
.ls-project-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0, 0.25, 1), filter 0.4s ease;
}
.ls-project-card:hover .ls-project-img img {
  transform: scale(1.04);
  filter: brightness(0.6);
}
.ls-project-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 28px; display: flex; justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0; transition: opacity 0.4s ease;
}
.ls-project-card:hover .ls-project-info { opacity: 1; }
.ls-project-name {
  font-family: var(--ls-heading-font); font-weight: 900;
  font-size: clamp(14px, 1.3vw, 22px); text-transform: uppercase;
  letter-spacing: 0.02em; color: #fff;
}
.ls-project-type {
  font-family: var(--ls-ui-font); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}

/* Custom Cursor */
.ls-cursor {
  position: fixed; top: 0; left: 0; z-index: 99999;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.3);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.25, 0, 0.25, 1);
}
.ls-cursor span {
  font-family: var(--ls-ui-font); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: #fff; font-weight: 500;
}
.ls-cursor.ls-cursor-visible {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}

/* === Tagline Divider === */
.ls-tagline-divider {
  position: relative; padding: 14vh var(--ls-home-padding); text-align: center;
  overflow: visible;
}
.ls-tagline-text {
  font-family: var(--ls-condensed-font); font-weight: 400;
  font-size: clamp(36px, 6vw, 100px); text-transform: uppercase;
  line-height: 0.9; letter-spacing: 0.02em;
}
.ls-tagline-text em {
  font-style: italic; font-family: var(--ls-serif-font);
  font-weight: 400; text-transform: none;
  color: rgba(var(--ls-color-rgb), 0.6);
}

/* === Why Listella === */
.ls-why-section { padding: 10vh 0; }
.ls-why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  padding: 0 var(--ls-home-padding);
}
.ls-why-card {
  padding: 50px 40px; border: 1px solid rgba(var(--ls-color-rgb), 0.1);
  transition: border-color 0.4s ease;
}
.ls-why-card:hover { border-color: rgba(var(--ls-color-rgb), 0.3); }
.ls-why-number {
  font-family: var(--ls-mono-font); font-size: 13px;
  color: rgba(var(--ls-color-rgb), 0.3); margin-bottom: 24px;
}
.ls-why-heading {
  font-family: var(--ls-heading-font); font-weight: 900;
  font-size: clamp(18px, 1.5vw, 24px); margin-bottom: 16px;
  line-height: 1.2;
}
.ls-why-text {
  font-family: var(--ls-ui-font); font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.7; color: rgba(var(--ls-color-rgb), 0.6);
}

/* === Scattered floating images (rockball, knight, clock, trex) === */
.ls-icon-rockball {
  width: clamp(170px, 24vw, 400px);
  right: -2%; top: 50%; transform: translateY(-50%);
  z-index: 1; opacity: 0.85;
}
.ls-icon-knight {
  width: clamp(150px, 20vw, 340px);
  position: absolute;
  left: 12%; top: -30px;
  z-index: 1;
}
.ls-icon-clock {
  width: clamp(150px, 20vw, 340px);
  position: absolute;
  right: 6%; top: -20px;
  z-index: 1;
}
.ls-icon-trex {
  width: clamp(150px, 20vw, 340px);
  position: absolute;
  right: 6%; top: 50%; transform: translateY(-50%);
  z-index: 1;
}

/* === Services === */
.ls-services-section { position: relative; padding: 12vh 0; overflow: visible; }
.ls-services-list { padding: 0 var(--ls-home-padding); max-width: 900px; margin: 0 auto; }
.ls-service-item {
  display: flex; align-items: center; gap: 30px;
  padding: 40px 0; border-bottom: 1px solid rgba(var(--ls-color-rgb), 0.1);
  cursor: pointer; transition: border-color 0.3s ease;
}
.ls-service-item:first-child { border-top: 1px solid rgba(var(--ls-color-rgb), 0.1); }
.ls-service-item:hover { border-color: rgba(var(--ls-color-rgb), 0.4); }
.ls-service-label {
  font-family: var(--ls-mono-font); font-size: 13px;
  color: rgba(var(--ls-color-rgb), 0.3); flex-shrink: 0; width: 40px;
}
.ls-service-content { flex: 1; }
.ls-service-name {
  font-family: var(--ls-heading-font); font-weight: 900;
  font-size: clamp(18px, 1.8vw, 28px); margin-bottom: 8px;
  transition: color 0.3s ease;
}
.ls-service-item:hover .ls-service-name { color: var(--ls-color); }
.ls-service-desc {
  font-family: var(--ls-ui-font); font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.7; color: rgba(var(--ls-color-rgb), 0.5);
  max-width: 600px;
}
.ls-service-arrow {
  font-size: 24px; color: rgba(var(--ls-color-rgb), 0.2);
  transition: color 0.3s ease, transform 0.3s ease;
}
.ls-service-item:hover .ls-service-arrow {
  color: var(--ls-color); transform: translateX(5px);
}

/* === Tools Marquee === */
.ls-tools-section {
  padding: 8vh 0; border-top: 1px solid rgba(var(--ls-color-rgb), 0.1);
  border-bottom: 1px solid rgba(var(--ls-color-rgb), 0.1);
  overflow: hidden;
}
.ls-tools-label {
  font-family: var(--ls-ui-font); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(var(--ls-color-rgb), 0.4);
  text-align: center; margin-bottom: 30px;
}
.ls-tools-track { overflow: hidden; }
.ls-tools-scroll {
  display: flex; align-items: center; gap: 60px;
  animation: ls-tools-scroll 30s linear infinite; width: max-content;
  white-space: nowrap;
}
.ls-tool-logo {
  height: clamp(22px, 2.5vw, 36px); width: auto;
  opacity: 0.5; transition: opacity 0.3s ease;
  flex-shrink: 0; filter: brightness(0) invert(1);
}
.ls-home.ls-light .ls-tool-logo { filter: brightness(0); }
.ls-home.ls-light .ls-icon-item img,
.ls-home.ls-light .ls-icon-rockball img,
.ls-home.ls-light .ls-icon-knight img,
.ls-home.ls-light .ls-icon-clock img,
.ls-home.ls-light .ls-icon-trex img { filter: none; }
.ls-tool-logo:hover { opacity: 1; }
@keyframes ls-tools-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === FAQ === */
.ls-faq-section { position: relative; padding: 12vh 0; overflow: visible; }
.ls-faq-list { padding: 0 var(--ls-home-padding); max-width: 900px; margin: 0 auto; }
.ls-faq-item {
  border-bottom: 1px solid rgba(var(--ls-color-rgb), 0.1);
}
.ls-faq-item:first-child { border-top: 1px solid rgba(var(--ls-color-rgb), 0.1); }
.ls-faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-family: var(--ls-heading-font); font-weight: 900;
  font-size: clamp(14px, 1.2vw, 18px); text-align: left;
  color: var(--ls-color); cursor: pointer; transition: color 0.3s ease;
}
.ls-faq-question:hover { color: rgba(var(--ls-color-rgb), 0.7); }
.ls-faq-icon {
  font-family: var(--ls-ui-font); font-size: 20px; font-weight: 300;
  color: rgba(var(--ls-color-rgb), 0.4); transition: transform 0.3s ease;
  flex-shrink: 0; margin-left: 20px;
}
.ls-faq-item.ls-faq-open .ls-faq-icon { transform: rotate(45deg); }
.ls-faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
}
.ls-faq-item.ls-faq-open .ls-faq-answer {
  max-height: 300px;
}
.ls-faq-answer p {
  font-family: var(--ls-ui-font); font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.7; color: rgba(var(--ls-color-rgb), 0.5);
  padding-bottom: 24px;
}

/* === CTA === */
.ls-cta-section { position: relative; padding: 15vh var(--ls-home-padding); text-align: center; overflow: visible; }
.ls-cta-subtitle {
  font-family: var(--ls-ui-font); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(var(--ls-color-rgb), 0.4); margin-bottom: 20px;
}
.ls-cta-heading {
  font-family: var(--ls-condensed-font); font-weight: 400;
  font-size: clamp(50px, 10vw, 160px); text-transform: uppercase;
  line-height: 0.85; letter-spacing: 0.02em; margin-bottom: 30px;
}
.ls-cta-link {
  display: inline-block;
  font-family: var(--ls-ui-font); font-size: clamp(14px, 1vw, 18px);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 16px 40px; border: 1px solid rgba(var(--ls-color-rgb), 0.3);
  color: var(--ls-color); transition: all 0.3s ease; border-radius: 100px;
}
.ls-cta-link:hover {
  background: var(--ls-color); color: var(--ls-bg); border-color: var(--ls-color);
}

/* === Footer === */
.ls-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: var(--ls-padding); z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.ls-footer.ls-footer-visible { opacity: 1; }
.ls-footer a, .ls-footer button { pointer-events: auto; }
.ls-footer-inner {
  display: flex; align-items: flex-end; justify-content: space-between; width: 100%;
  font-family: var(--ls-ui-font); font-size: 12px;
  letter-spacing: 0.02em; text-transform: uppercase;
}

/* Footer Left — Toggle */
.ls-footer-left { display: flex; align-items: center; flex: 1; }
.ls-toggle { display: flex; align-items: center; gap: var(--ls-toggle-scale); pointer-events: auto; }
.ls-toggle-switch {
  background-color: var(--ls-color); border-radius: var(--ls-toggle-scale);
  cursor: pointer; position: relative;
  width: calc(var(--ls-toggle-scale) * 1.8); height: calc(var(--ls-toggle-scale) * 1);
}
.ls-toggle-inner {
  position: absolute; top: 0; left: 0;
  width: calc(var(--ls-toggle-scale) * 1); height: calc(var(--ls-toggle-scale) * 1);
  border-radius: 5px; padding: calc(var(--ls-toggle-scale) * 0.125);
  transition: transform 0.3s ease;
}
.ls-toggle.active .ls-toggle-inner { transform: translate(80%); }
.ls-toggle-handle {
  background-color: var(--ls-bg); border-radius: 10px;
  width: calc(var(--ls-toggle-scale) * 0.75); height: calc(var(--ls-toggle-scale) * 0.75);
}
.ls-toggle-label { overflow: hidden; position: relative; height: 1.2em; }
.ls-toggle-label span { display: block; text-align: left; transition: transform 0.3s ease; white-space: nowrap; }
.ls-toggle-label span:last-child { position: absolute; left: 0; top: 100%; }
.ls-toggle.active .ls-toggle-label span { transform: translateY(-100%); }

/* Footer Center — Globe + text */
.ls-footer-center {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center; flex: 1;
}
.ls-scroll-chevron { opacity: 0.5; }
.ls-footer-globe { max-width: 60px; }
.ls-footer-globe svg { display: block; width: 100%; }
.ls-footer-center-text {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: rgba(var(--ls-color-rgb), 0.7);
}

/* Footer Right — Social */
.ls-footer-right-section {
  display: flex; align-items: center; gap: 12px;
  justify-content: flex-end; flex: 1;
}
.ls-footer-site-link { pointer-events: auto; }
.ls-instagram-link { display: flex; align-items: center; pointer-events: auto; }
.ls-instagram-link svg { display: block; width: 14px; height: 14px; }

/* Awwwards Ribbon */
.ls-ribbon {
  position: fixed; right: 0; top: 75%; transform: translateY(-50%);
  width: clamp(30px, 5vw, 60px); z-index: 10000; pointer-events: auto;
}
.ls-ribbon a { display: block; }
.ls-ribbon img { display: block; width: 100%; }

/* === Responsive === */
@media (max-width: 800px) {
  .ls-hero-title { font-size: clamp(26px, 8vw, 40px); }
  .ls-heading { font-size: clamp(22px, 6vw, 36px); }
  .ls-text-inner { max-width: 100% !important; }
  .ls-text-image { display: none; }
  .ls-cta-heading { font-size: clamp(40px, 15vw, 100px); }
  .ls-footer-inner { flex-direction: column; align-items: center; gap: 15px; }
  .ls-footer-left, .ls-footer-right-section { justify-content: center; }
  .ls-hero-info { display: none; }
  /* Hero floating images — 50% bigger than desktop on mobile */
  .ls-icon-1 { width: 180px; top: 12%; right: 2%; left: auto; }
  .ls-icon-2 { width: 195px; top: 6%; left: 2%; right: auto; }
  .ls-icon-3 { width: 188px; bottom: 8%; left: 2%; right: auto; }
  .ls-icon-4 { width: 207px; bottom: 14%; right: 2%; left: auto; }
  .ls-floating-glove-wrapper { height: 240px; margin-top: -10px; overflow: visible; }
  .ls-icon-5 { width: 210px; left: 3%; z-index: 0; }
  /* Non-hero floating images — 50% bigger, behind text */
  .ls-icon-rockball { width: 180px; right: 0; left: auto; top: auto; bottom: -40px; z-index: 0; opacity: 0.5; }
  .ls-icon-knight { width: 150px; left: 3%; right: auto; top: -30px; z-index: 0; opacity: 0.5; }
  .ls-icon-clock { width: 150px; right: 2%; left: auto; top: -25px; z-index: 0; opacity: 0.5; }
  .ls-icon-trex { width: 150px; right: 5%; left: auto; top: -60px; bottom: auto; z-index: 0; opacity: 0.5; }
  .ls-work-grid { grid-template-columns: 1fr; }
  .ls-why-grid { grid-template-columns: 1fr; }
  .ls-why-card { padding: 30px 24px; }
  .ls-service-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ls-service-arrow { display: none; }
  .ls-cursor { display: none !important; }
  .ls-hero-cursor { display: none !important; }
  .ls-hero { cursor: auto; }
  .ls-project-info { opacity: 1; }
  .ls-tagline-text { font-size: clamp(28px, 10vw, 60px); }
  /* Light mode: keep floating images fully visible */
  .ls-home.ls-light .ls-icon-rockball,
  .ls-home.ls-light .ls-icon-knight,
  .ls-home.ls-light .ls-icon-clock,
  .ls-home.ls-light .ls-icon-trex { opacity: 0.7; }
  /* Hide footer globe, text, instagram on mobile — keep only toggle */
  .ls-footer-center { display: none; }
  .ls-footer-right-section { display: none; }
  .ls-footer-inner { flex-direction: row; justify-content: center; }
  .ls-footer { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 100; padding: 16px 20px; background: var(--ls-bg); border-top: 1px solid rgba(var(--ls-color-rgb), 0.1); }
  .ls-home { padding-bottom: 60px; }
}

/* === Chrome Shine Hover Effect — on the actual letters === */
.ls-chrome-shine {
  pointer-events: auto;
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 0.6s ease, color 0.3s ease;
}
h1.ls-chrome-shine, h2.ls-chrome-shine, h3.ls-chrome-shine { display: block; }
.ls-chrome-shine:hover {
  background-image: linear-gradient(
    120deg,
    var(--ls-color) 0%,
    rgba(var(--ls-color-rgb), 0.4) 25%,
    #fff 45%,
    #fff 55%,
    rgba(var(--ls-color-rgb), 0.4) 75%,
    var(--ls-color) 100%
  );
  -webkit-text-fill-color: transparent;
  background-position: 0% 0;
}

/* === Listella-style scroll text reveal: word groups grey → white === */
.ls-scroll-word {
  display: inline;
  color: rgba(var(--ls-color-rgb), 0.25);
  transition: color 0.4s ease;
}
.ls-scroll-word.ls-word-lit {
  color: var(--ls-color);
}
