/* Landing hero slideshow. The opening BTS still cross-fades into each
   personal-project cover; hovering a header project link uses the pinned
   layer above the timed sequence. */
.sequence {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.sequence__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-fade-slow) var(--ease-standard);
}
.sequence__frame.is-active { opacity: 1; z-index: 1; }
.sequence__frame picture {
  position: absolute;
  inset: 0;
  display: block;
}
.sequence__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pinned layer — held on a project's cover photo while its header project
   link is hovered/focused (js/project-links.js + js/sequence.js's
   SiteSequence.pin/unpin). Sits above the still hero frame. */
.sequence__frame--pinned { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .sequence__frame--pinned { transition: none; }
}

.sequence__title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  padding: var(--pad);
  padding-top: calc(var(--pad) * 3);
  background: var(--scrim-bottom);
  color: var(--on-dark);
  transition: opacity 600ms var(--ease-standard), visibility 600ms;
}
.sequence__title.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sequence__title h1 {
  font-size: var(--display-size);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.03em;
}
.sequence__title p {
  margin: clamp(8px, 1.2vw, 14px) 0 0;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--hero-button-size);
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .85;
}

.sequence__project-title { display: none; }

/* On the mobile homepage, expose the five selected projects as a compact
   vertical list. The slideshow's active project uses the shared underline
   state from base.css, so the list doubles as the current-slide label. */
@media (max-width: 639px) {
  .sequence__frame[data-slug="caress"] {
    background: var(--bg);
  }
  .sequence__frame[data-slug="caress"] picture {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sequence__frame[data-slug="caress"] img {
    object-fit: contain;
    width: 92vw;
    height: auto;
    max-height: 88svh;
  }
  .site-nav--overlay .site-nav__projects-toggle { display: none; }
  .site-nav--overlay .site-nav__dropdown[data-projects-group] {
    position: fixed;
    top: auto;
    right: var(--pad);
    bottom: max(32px, env(safe-area-inset-bottom));
  }
  .site-nav--overlay .site-nav__dropdown .site-nav__projects.site-nav__panel {
    display: flex;
    position: static;
    align-items: flex-end;
    gap: 7px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    max-width: none;
    max-height: none;
    overflow: visible;
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: .1em;
    text-align: right;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sequence__frame,
  .sequence__title { transition: none; }
}

.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  z-index: 10;
  color: var(--on-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--button-size);
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: .75;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 28px;
  background: rgba(var(--on-dark-rgb), .6);
}
@media (max-width: 639px) {
  .scroll-cue { display: none; }
}

/* below-fold entry into the rest of the site */
.landing-links {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .landing-links { grid-template-columns: repeat(3, 1fr); }
}
.landing-links a {
  display: block;
  padding: clamp(28px, 4vw, 56px) var(--pad);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .landing-links a:not(:last-child) { border-right: 1px solid var(--line); }
}
.landing-links a:hover .h2 { text-decoration: underline; text-underline-offset: 6px; }
.landing-links .eyebrow { display: block; margin-bottom: 8px; }
