/**
 * Léyo site-wide atmosphere — hero photograph (Artifis portfolio capture).
 * Image: /leyo/images/leyo-hero-bg.jpg
 *
 * Hero + portfolio hero: client work photograph (cover, no-repeat).
 * Body: subtle gradient wash only — no duplicate photo (prevents vertical tiling).
 */

body.leyo-site {
  --leyo-hero-bg-url: url('/leyo/images/leyo-hero-bg.jpg');
  --leyo-hero-bg-opacity: 0.1;
  position: relative;
}

/* Site-wide ambient — gradient only (no RAX image under hero) */
body.leyo-site::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(46, 46, 38, 0.08) 0%,
    rgba(46, 46, 38, 0.04) 45%,
    rgba(46, 46, 38, 0.1) 100%
  );
}

/* Main page blocks only — do not override fixed nav drawer/backdrop */
body.leyo-site > nav,
body.leyo-site > section,
body.leyo-site > footer,
body.leyo-site > .ticker,
body.leyo-site > .topbar {
  position: relative;
  z-index: 1;
}

/* Tame page grain so it does not wash out the photograph */
body.leyo-site::before {
  opacity: 0.1 !important;
  z-index: 0 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* Nav + logo ticker — solid/frosted so logo and menu stay crisp */
body.leyo-site .nav {
  background: rgba(109, 111, 104, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
}

/* Footer logo marquee — scrolling credentials, ~60% logo visibility */
body.leyo-site .topbar {
  background: var(--sage, #6d6f68);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  opacity: 0.95;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.leyo-site .topbar--footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
}

body.leyo-site .logo-marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

body.leyo-site .topbar::before,
body.leyo-site .topbar::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

body.leyo-site .topbar::before {
  left: 0;
  background: linear-gradient(to right, var(--sage, #6d6f68), transparent);
}

body.leyo-site .topbar::after {
  right: 0;
  background: linear-gradient(to left, var(--sage, #6d6f68), transparent);
}

body.leyo-site .logo-track {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 0;
  width: max-content;
  min-width: 100%;
  animation: leyo-logo-scroll 70s linear infinite;
  will-change: transform;
}

body.leyo-site .logo-track:hover {
  animation-play-state: paused;
}

body.leyo-site .logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  flex-shrink: 0;
}

body.leyo-site .logo-item svg,
body.leyo-site .logo-item img {
  height: 16px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(35%) brightness(1.12);
  transition: opacity 0.4s, filter 0.4s;
}

body.leyo-site .logo-item:hover svg,
body.leyo-site .logo-item:hover img {
  opacity: 0.92;
  filter: grayscale(15%) brightness(1.08);
}

body.leyo-site .logo-cat {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.45rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.1);
  padding: 0 18px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes leyo-logo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.leyo-site .logo-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* Home hero — single RAX layer */
body.leyo-site .hero {
  isolation: isolate;
  min-height: 90vh;
  overflow: hidden;
}

body.leyo-site .hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

body.leyo-site .hero .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: var(--leyo-hero-bg-opacity);
}

body.leyo-site .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(
      to top,
      rgba(46, 46, 38, 0.72) 0%,
      rgba(46, 46, 38, 0.38) 36%,
      rgba(46, 46, 38, 0.12) 62%,
      transparent 80%
    ),
    linear-gradient(rgba(46, 46, 38, 0.14), rgba(46, 46, 38, 0.14));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

/* Accent stripe from page CSS stays above the photo */
body.leyo-site .hero::after {
  z-index: 2;
}

body.leyo-site .hero .container {
  z-index: 3;
}

body.leyo-site .hero-tag,
body.leyo-site .hero h1,
body.leyo-site .hero-sub {
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.5),
    0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Portfolio hero — same single-layer treatment */
body.leyo-site .portfolio-hero {
  isolation: isolate;
  min-height: 72vh;
  overflow: hidden;
  background: transparent !important;
}

body.leyo-site .portfolio-hero .portfolio-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.leyo-site .portfolio-hero .portfolio-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: var(--leyo-hero-bg-opacity);
}

body.leyo-site .portfolio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(
      to top,
      rgba(46, 46, 38, 0.78) 0%,
      rgba(46, 46, 38, 0.4) 38%,
      transparent 72%
    ),
    linear-gradient(rgba(46, 46, 38, 0.18), rgba(46, 46, 38, 0.18));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

body.leyo-site .portfolio-hero > .container {
  position: relative;
  z-index: 1;
}

body.leyo-site .portfolio-hero::after {
  z-index: 2;
}

body.leyo-site .portfolio-hero h1,
body.leyo-site .portfolio-hero .portfolio-lead {
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Content sections — semi-solid cards (readable, pattern visible between blocks) */
body.leyo-site .section-a:not(.portfolio-hero) {
  background: rgba(133, 135, 127, 0.9);
}

body.leyo-site .section-b {
  background: rgba(121, 123, 115, 0.9);
}

body.leyo-site .section-c {
  background: rgba(109, 111, 104, 0.9);
}

body.leyo-site .footer {
  background: rgba(109, 111, 104, 0.94);
}

@media (prefers-reduced-motion: reduce) {
  body.leyo-site .hero::before,
  body.leyo-site .portfolio-hero::before {
    background-attachment: scroll;
  }
}
