/* CSL home: form lines, portrait carousel, and the shared dragon row.
   Hero frame, type, and tokens come from /site.css. */

#hero-signup { scroll-margin-top: 18px; }
.hero-signup .lede {
  order: 2;
  margin: 14px 4px 0;
  max-width: 38ch;
  font-size: 15.5px;
  line-height: 1.45;
}
.hero-signup .lede:hover { translate: 0 0; }
.hero-signup .lede a {
  color: var(--ember);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.hero-signup-msg { order: 3; }

.band { padding-top: clamp(88px, 12vw, 160px); }
.head { margin-bottom: clamp(32px, 5vw, 56px); }

.hall {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  padding-bottom: 8px;
}
.hall:active { cursor: grabbing; }
.hall-track {
  display: flex;
  gap: clamp(18px, 3vw, 32px);
  width: max-content;
}
.hall figure { width: clamp(168px, 62vw, 210px); margin: 0; flex: none; }
.hall img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  filter: grayscale(1) contrast(1.05);
  border-radius: 20px;
  display: block;
}
.hall figure:hover img { filter: none; }
.hall figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.hall .bio {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--dim);
}

.dragons {
  --sig: #ff5a1f;
  display: grid;
  gap: 22px;
}
.dragons h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
}
.dragon-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.dragon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  align-items: start;
  gap: 10px;
  padding: 28px 22px 22px;
  border: 1px solid rgba(230, 196, 120, 0.55);
  border-radius: 28px;
  background: #121214;
  box-shadow: 0 0 16px rgba(230, 196, 120, 0.24);
}
.dragon-art,
.dragon-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 250ms linear;
}
.dragon-art {
  object-fit: cover;
  object-position: center 42%;
}
.dragon-shade {
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.55) 0%, rgba(8, 7, 6, 0.68) 48%, rgba(8, 7, 6, 0.8) 100%);
}
.dragon > :not(.dragon-art):not(.dragon-shade) { position: relative; z-index: 1; }
.dragon.lit {
  border-color: #f2d48e;
  box-shadow: 0 0 26px rgba(242, 212, 142, 0.62);
}
.dragon.lit .dragon-art,
.dragon.lit .dragon-shade { opacity: 1; }
.dragon-line {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.dragon-tool { color: #fff; font-size: 15px; font-weight: 600; }
.dragon-get {
  margin: 0;
  max-width: 32ch;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 400;
}
.dragon a {
  padding-top: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--sig);
}
.contact {
  margin: 28px 0 14px;
  font-size: 14px;
}
.contact a {
  color: var(--soft);
  text-decoration: none;
}
.contact a:hover { color: #fff; }

@media (min-width: 900px) {
  .hall figure { width: 196px; }
  .dragon-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }
  .dragon {
    height: 100%;
    grid-template-rows: auto auto 1fr auto;
    align-content: stretch;
  }
  .dragon-row:has(.dragon:hover) .dragon.lit:not(:hover) {
    border-color: rgba(230, 196, 120, 0.55);
    box-shadow: 0 0 16px rgba(230, 196, 120, 0.24);
  }
  .dragon-row:has(.dragon:hover) .dragon.lit:not(:hover) .dragon-art,
  .dragon-row:has(.dragon:hover) .dragon.lit:not(:hover) .dragon-shade { opacity: 0; }
  .dragon:hover {
    border-color: #f2d48e;
    box-shadow: 0 0 26px rgba(242, 212, 142, 0.62);
  }
  .dragon:hover .dragon-art,
  .dragon:hover .dragon-shade { opacity: 1; }
  .dragon-line { min-height: 3lh; }
  .dragon-get { align-self: start; }
  .dragon a { align-self: start; }
}

@media (max-width: 760px) {
  .hero-signup .lede { text-align: center; text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hall { cursor: auto; }
  .hall img { transition: none; }
  .dragon-art,
  .dragon-shade { transition: none; }
}
