/* Home page only: preloader, top bar over the hero, hero, About block, Music section switch, closing call. Shared parts live in ginobla.css. */

/* Preloader: hidden unless the head script adds .pre (first visit, motion allowed) */
.preloader { display: none; }
.pre .preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: var(--s-6); background: var(--night); clip-path: inset(0 0 0 0); }
.pre body { overflow: hidden; }
.pre-emblem { width: clamp(140px, 22vw, 240px); height: auto; }
.pre-line { display: block; width: clamp(120px, 16vw, 180px); height: 2px; background: var(--line); overflow: hidden; }
.pre-line span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* Top bar over the hero: transparent at the top, solid once scrolled, hides on the way down */
.home .topbar { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; transition: transform .35s var(--ease), background-color .3s var(--ease); }
.home .topbar.solid { background: color-mix(in srgb, var(--night) 90%, transparent); backdrop-filter: blur(10px); }
.home .topbar.away { transform: translateY(-100%); }
.home .topbar nav a { color: var(--bone); opacity: .8; }
.home .topbar nav a:hover { opacity: 1; }

/* 1. Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero .strip { position: relative; z-index: 1; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 50% 30%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18, 12, 9, .55), transparent 28%, transparent 55%, var(--night) 100%); }
.hero-inner { position: relative; padding-top: 120px; padding-bottom: var(--s-5); display: grid; gap: var(--s-6); }
.hero-line { margin: 0; justify-self: end; max-width: 16em; text-align: right; font-weight: 700; font-size: var(--t-lead); line-height: 1.3; text-shadow: 0 1px 18px rgba(18, 12, 9, .9), 0 0 4px rgba(18, 12, 9, .6); }
.hero-name { margin: 0; overflow: hidden; }
.hero-name img { width: min(100%, calc((100svh - 330px) * 2.5)); height: auto; } /* wordmark is 2.5:1; leaves room for the strip on short screens */
@media (max-width: 700px) { .hero-line { justify-self: start; text-align: left; } }

/* About: headline overlapping the photo (asake's "Crafting brands" block) */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.about-a { grid-column: 2 / 9; grid-row: 1; position: relative; z-index: 2; }
.about-photo { grid-column: 4 / 10; grid-row: 1 / 3; margin-top: clamp(80px, 9vw, 140px); aspect-ratio: 4 / 5; overflow: hidden; }
.about-photo img { width: 100%; height: 118%; object-fit: cover; }
.about-b { grid-column: 7 / 13; grid-row: 2; align-self: end; position: relative; z-index: 2; margin-bottom: clamp(40px, 6vw, 100px); }
.about-text { grid-column: 7 / 12; grid-row: 3; margin-top: var(--s-6); max-width: 30em; }
.about-text p { margin: 0 0 var(--s-4); }
.about .h2 { font-size: var(--t-h1); line-height: .86; }
.about-text .about-lead { font-size: var(--t-lead); font-weight: 700; line-height: 1.35; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-a, .about-photo, .about-b, .about-text { grid-column: 1; grid-row: auto; }
  .about-photo { margin-top: var(--s-5); width: 80%; justify-self: end; }
  .about-b { margin: calc(-1 * var(--s-9)) 0 0; }
}

/* Music section: hover list on laptops, card slider on phones and tablets */
.music-title { margin-bottom: var(--s-6); text-align: center; }
.music-list { margin-bottom: var(--s-7); }
.slider { display: none; }
.all { margin-top: 0; }
@media (hover: none), (max-width: 1024px) {
  .music-list { display: none; }
  .slider { display: block; margin-bottom: var(--s-7); }
}

.shows-block { padding-top: 0; }

/* Hero and closing photo slots */
.hero-photo.stand-in, .closing-photo.stand-in { border: 0; }
.hero-photo.stand-in .stand-in-label { place-items: start center; padding-top: 38vh; }
.closing-photo.stand-in .stand-in-label { place-items: start center; padding-top: 18%; }

/* 9. Closing call (asake's "Build a brand that stands out") */
.closing { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; }
.closing-photo, .closing-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing-photo img { object-fit: cover; }
.closing-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--night) 5%, rgba(18, 12, 9, .55) 55%, rgba(18, 12, 9, .2)); }
.closing-inner { position: relative; padding-bottom: var(--s-9); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-7); flex-wrap: wrap; }
.closing-actions { display: grid; gap: var(--s-6); max-width: 420px; width: 100%; }
.closing-actions .btn-gold { justify-self: start; }
/* Phones: the text would cover his face, so the photo sits at the top, uncovered, and fades into the text */
@media (max-width: 700px) {
  .closing { min-height: 0; padding-top: 100vw; }
  .closing-photo, .closing-photo img { bottom: auto; height: 125vw; }
  .closing-photo img { object-position: 70% 30%; }
  .closing-shade { background: linear-gradient(to bottom, rgba(18, 12, 9, .1) 0, rgba(18, 12, 9, .15) 60vw, var(--night) 122vw); }
}
