

:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Syne', sans-serif;
  --white: #f0ede8;
  --black: #0a0a0a;
  --dim: rgba(240,237,232,0.35);
  --dimmer: rgba(240,237,232,0.18);
}


/* ── HERO ── */
.home-layout {
  position: relative;
}

section.hero {
  position: relative;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 600px) {
  .home-layout {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--topbar-height));
    margin-top: var(--topbar-height);
    overflow: hidden;
  }

  /* JS sets wrap height explicitly — flex: none prevents flex from overriding it */
  .wrap {
    flex: none;
    overflow: hidden;
  }

  /* section.hero height: 100% resolves correctly once JS gives .wrap an explicit px height */

  .hero-content {
    position: static;
    flex-shrink: 0;
    padding: 1rem 1.5rem;
  }

  .hero-desc {
    max-width: 100%;
  }
}

div.hero {
  position: absolute; inset: 0; overflow: hidden;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: #111;
  will-change: clip-path;
}

.slide.zooming {
  animation: slowZoom 7s linear forwards;
}

/* Wipe overlay — covers the incoming slide from left, then reveals it */
.slide-wipe {
    position: absolute;
    inset: -6%;
    width: 112%; height: 112%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
}

/* ── WIPE EDGE GRADIENT ── */
.slide-edge {
  position: absolute;
  top: 0; bottom: 0;
  left: -25px;
  width: 50px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.85) 50%, transparent);
  opacity: 0;
  will-change: transform;
}

/* ── HERO OVERLAY ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 26;
  pointer-events: none;
  background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.45) 0%,
            rgba(0,0,0,0.22) 30%,
            rgba(0,0,0,0.08) 55%,
            rgba(0,0,0,0.00) 75%
        ),
        linear-gradient(
            180deg,
            rgba(0,0,0,0.20) 0%,
            rgba(0,0,0,0.00) 20%,
            rgba(0,0,0,0.00) 60%,
            rgba(0,0,0,0.65) 100%
        );
    /*linear-gradient(
      0deg,
      rgba(0,0,0,0.45) 0%,
      rgba(0,0,0,0.25) 30%,
      rgba(0,0,0,0.08) 55%,
      rgba(0,0,0,0.00) 75%
    );*/
}

/* ── HERO TEXT ── */
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 50;
  padding: 0 2.5rem 3rem;
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-content {
    padding-bottom: 1rem;
  }
}

.hero-name {
  font-size: 28px;
  font-variant: small-caps;
  font-weight: 300; line-height: 0.92; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}

.hero-job {
  font-size: 12px; letter-spacing: 0.25em; /*text-transform: uppercase;*/
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 10px;
}

.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em; line-height: 1.7;
  max-width: 500px;
}
