/* ==========================================================================
   spotlight: the CONCIERGE wordmark, set in the accent font (Anglecia);
   the I is a plain copper bar so it can become a button. The section is pinned; while you scroll,
   the copper letter I turns 90°, moves down to the centre and grows into
   the Telegram button (idea from template "Pensatori Irrazionali",
   js/modules/spotlight.js)
   ========================================================================== */

.spotlight {
  position: relative;
  height: 100svh;
  min-height: 30rem;
  overflow: hidden;
  background-color: var(--color-ivory);
  color: var(--color-teal);
}

.spotlight__word {
  position: absolute;
  top: 30%;
  left: var(--gutter);
  right: var(--gutter);
  transform: translateY(-50%);
}

.spotlight__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: var(--color-teal);
}

.spotlight__link {
  cursor: pointer;
  outline: none;
}

.spotlight__i-shape {
  fill: var(--color-copper);
  transition: fill 300ms var(--ease-out);
}

.spotlight__i-label {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 5px;
  text-anchor: middle;
  dominant-baseline: central;
  fill: var(--color-ivory);
  pointer-events: none;
}

@media (hover: hover) {
  .spotlight__link:hover .spotlight__i-shape {
    fill: var(--color-teal);
  }
}

.spotlight__link:focus-visible .spotlight__i-shape {
  stroke: var(--color-teal);
  stroke-width: 10px;
}

.spotlight__note {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: max-content;
  max-width: calc(100% - var(--gutter) * 2);
  text-align: center;
  transform: translateX(-50%);
  opacity: 0;
}

/* plain button, shown only when animations are off */
.spotlight__fallback {
  display: none;
}

.reduced-motion .spotlight,
.no-js .spotlight {
  height: auto;
  min-height: 0;
  padding-block: var(--section-pad);
}

.reduced-motion .spotlight__word,
.no-js .spotlight__word {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin-inline: var(--gutter);
  transform: none;
}

.reduced-motion .spotlight__note,
.no-js .spotlight__note {
  position: static;
  margin: 2rem auto 1rem;
  transform: none;
  opacity: 1;
}

.reduced-motion .spotlight__fallback,
.no-js .spotlight__fallback {
  display: flex;
  width: max-content;
  margin-inline: auto;
}
