/* Hero: the poster wall, EU seal, gold title, scholarship letter and ticker */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: var(--nav-h) minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--blush);
  padding-bottom: clamp(20px, 4vh, 44px);
}

.hero__wall {
  --wall-size: min(10.5vh, 17vw);
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  font: 700 var(--wall-size)/0.86 var(--font-display);
  color: var(--crimson);
  text-transform: uppercase;
}
.wall__row { display: flex; justify-content: center; white-space: nowrap; }
.wall__track { flex: none; display: flex; will-change: transform; }
.wall__track span { padding-right: 0.22em; }
.wall__row:nth-child(4n + 2) .wall__track { translate: -1.1em 0; }
.wall__row:nth-child(4n + 3) .wall__track { translate: 0.6em 0; }
.wall__row:nth-child(4n + 4) .wall__track { translate: -0.4em 0; }

.seal {
  position: absolute;
  z-index: 2;
  top: calc(var(--nav-h) + 2vh);
  right: clamp(16px, 9vw, 160px);
  width: min(28vh, 34vw);
  aspect-ratio: 1;
}
.seal__disk {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--eu);
  border: clamp(4px, 0.6vw, 7px) solid var(--paper);
  box-shadow: 0 24px 48px -20px rgba(28, 63, 170, 0.65);
  color: var(--eu-yellow);
  rotate: -8deg;
}
.seal__ring {
  width: 100%;
  height: 100%;
  animation: spin 80s linear infinite;
}

.hero__intro {
  grid-row: 3;
  position: relative;
  z-index: 3;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.hero__title { text-align: center; line-height: 0.9; }

.gold {
  display: inline-block;
  font: 700 min(14vh, 10.2vw)/0.95 var(--font-display);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  background-image: var(--gold);
  background-size: 250% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0.035em 0 rgba(110, 74, 18, 0.8)) drop-shadow(0 0.1em 0.12em rgba(58, 11, 31, 0.16));
}

.hero__tag {
  margin: 0.2em 0 1.1em;
  text-align: center;
  font: italic 500 var(--step-1)/1 var(--font-text);
  color: var(--crimson-deep);
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}
.hero__lede {
  max-width: 40ch;
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.45;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The letter only exists when motion is on: it is revealed by scrolling */
.letter {
  display: none;
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: min(540px, 86vw);
  translate: -50% -50%;
}
.has-motion .letter { display: block; }

.letter__paper {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper);
  border-radius: 6px;
  box-shadow: var(--paper-shadow);
}
.letter__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font: 500 0.9375rem/1 var(--font-display);
  letter-spacing: 0.02em;
  color: var(--wine-soft);
}
.letter__mark { width: 30px; height: 30px; color: var(--eu); }
.letter__greet { font-style: italic; margin-bottom: 0.6em; }
.letter__body { font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); line-height: 1.45; }
.letter__body mark {
  --mark: 0%;
  color: inherit;
  background: linear-gradient(var(--blush-deep), var(--blush-deep)) no-repeat 0 88% / var(--mark) 42%;
}
.letter__lines i {
  display: block;
  height: 8px;
  margin-top: 12px;
  border-radius: 4px;
  background: rgba(58, 11, 31, 0.08);
}
.letter__lines i:nth-child(2) { width: 88%; }
.letter__lines i:nth-child(3) { width: 56%; }

.stamp {
  position: absolute;
  right: clamp(-28px, -2vw, -12px);
  bottom: -34px;
  display: grid;
  place-items: center;
  width: clamp(104px, 14vw, 132px);
  aspect-ratio: 1;
  border: 3px solid var(--crimson);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 7px var(--crimson);
  background: rgba(255, 245, 249, 0.7);
  color: var(--crimson);
  font: 700 clamp(0.9rem, 0.8rem + 0.4vw, 1.1rem)/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.letter__note {
  margin: 56px 0 0;
  text-align: center;
  font: italic 500 var(--step-1)/1.3 var(--font-text);
  color: var(--crimson-deep);
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  padding-block: 18px;
  background: var(--crimson);
  color: var(--blush);
}
.ticker__track {
  display: flex;
  width: max-content;
  font: 600 clamp(1.5rem, 1rem + 2vw, 2.25rem)/1 var(--font-display);
  text-transform: uppercase;
  animation: marquee 32s linear infinite;
}
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding-right: 0.7em;
}
.ticker__track span::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  background: var(--eu-yellow);
  -webkit-mask: var(--star-mask) center / contain no-repeat;
  mask: var(--star-mask) center / contain no-repeat;
}

