/* ==========================================================================
   hero.css — cover: mixed-type wordmark, tilted floating project covers,
   intro line and calls to action
   ========================================================================== */
.hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(40px, 6vw, 84px)) var(--sec);
  overflow: hidden; overflow: clip;
}

/* wordmark — each letter in a different typeface */
.word {
  display: flex; justify-content: space-between; align-items: baseline;
  white-space: nowrap; line-height: .9; font-weight: 400;
  font-size: clamp(36px, 10.6vw, 150px);
}
.word > span {
  display: inline-block;
  transition: translate .5s var(--ease-spring), color .3s var(--ease);
}
.word > span:hover { translate: 0 -.08em; color: var(--blue); }
.word .sp { width: .3em; }
.word .st svg { width: .62em; height: .62em; color: var(--blue); animation: spin 16s linear infinite; }
.hero .word { translate: 0 calc(var(--hs, 0) * .22px); }   /* slower than the page = depth */

.f1 { font-family: "Archivo Black", sans-serif; }
.f2 { font-family: "Rubik Glitch", sans-serif; }
.f3 { font-family: "Silkscreen", monospace; font-weight: 700; font-size: .92em; }
.f4 { font-family: "Unbounded", sans-serif; font-weight: 900; }
.f5 { font-family: "Pirata One", serif; font-size: 1.12em; }
.f6 { font-family: "Monoton", sans-serif; font-size: .9em; }
.f7 { font-family: "Instrument Sans", sans-serif; font-weight: 700; font-size: 1.05em; }

/* covers — one per project, generated by js/render-projects.js */
.covers {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: clamp(8px, 1.6vw, 22px);
  margin-top: clamp(-64px, -5vw, -18px); padding-inline: 3%;
  translate: 0 calc(var(--hs, 0) * -.06px);
}
.cover-wrap { flex: 0 1 15%; min-width: 0; }
.cover {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 3 / 4; padding: clamp(10px, 1.3vw, 18px);
  border-radius: var(--r-card); text-decoration: none;
  background: var(--cc); color: var(--ct, var(--ink));
  rotate: var(--r); translate: 0 var(--y);
  box-shadow: 0 22px 36px -22px rgba(0, 0, 0, .5);
  animation: bob 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.1s);
  transition: rotate .6s var(--ease-spring), translate .5s var(--ease), scale .5s var(--ease), box-shadow .5s var(--ease);
}
.cover-wrap:nth-child(1) .cover { animation-delay: 0s; }
.cover-wrap:nth-child(2) .cover { animation-delay: -1.1s; }
.cover-wrap:nth-child(3) .cover { animation-delay: -2.2s; }
.cover-wrap:nth-child(4) .cover { animation-delay: -3.3s; }
.cover-wrap:nth-child(5) .cover { animation-delay: -4.4s; }
.cover-wrap:nth-child(6) .cover { animation-delay: -5.5s; }
.cover::after {                       /* light sheen that sweeps across on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  background-size: 250% 100%; background-position: 120% 0;
  transition: background-position .9s var(--ease);
}
.cover:hover, .cover:focus-visible {
  rotate: 0deg; translate: 0 calc(var(--y) - 14px); scale: 1.06; z-index: 2;
  box-shadow: 0 36px 50px -26px rgba(0, 0, 0, .55);
}
.cover:hover::after, .cover:focus-visible::after { background-position: -20% 0; }
.cover b { font: 900 clamp(13px, 1.9vw, 20px)/.95 var(--wide); letter-spacing: -.03em; text-transform: uppercase; overflow-wrap: anywhere; }
.cover small { font: 400 clamp(8px, .75vw, 11px)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.hero:not(.is-near) .cover { animation-play-state: paused; }

@media (max-width: 640px) {
  .covers { flex-wrap: wrap; margin-top: 28px; gap: 14px 12px; }
  .cover-wrap { flex-basis: 29%; }
}

/* intro line */
.hero-foot {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: end;
  margin-top: clamp(56px, 7vw, 96px);
}
.services, .year { font: 600 clamp(18px, 2.2vw, 26px)/1.1 var(--body); text-transform: uppercase; }
.hero-foot p:not(.services) { margin: 0 auto; max-width: 42ch; color: var(--soft); text-align: center; }
@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; gap: 20px; }
  .hero-foot p:not(.services) { text-align: left; margin: 0; }
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }

/* scroll cue — a small line that keeps "dripping" down */
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: max-content; margin: clamp(40px, 6vw, 72px) auto 0;
  text-decoration: none; color: var(--soft);
}
.scroll-cue i { position: relative; width: 1.5px; height: 46px; overflow: hidden; background: color-mix(in srgb, var(--ink) 15%, transparent); }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 2.2s var(--ease) infinite; }
.scroll-cue:hover { color: var(--ink); }
