:root {
  --night: #17123d;
  --paper: #fff1d7;
  --orange: #f26a22;
  --yellow: #f5c52b;
  --blue: #168da8;
  --red: #d82e38;
  --green: #259a66;
  --pink: #df4d79;
  --display: "Anton", "Arial Narrow", sans-serif;
  --text: "Barlow Condensed", sans-serif;
  --page: clamp(1.25rem, 4vw, 4.5rem);
  --motion: cubic-bezier(.22, .72, 0, 1);
}

* { box-sizing: border-box; }
html { height: 100%; }
body { height: 100svh; margin: 0; color: var(--night); background: var(--paper); font-family: var(--text); overflow: hidden; }
main { height: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  color: var(--paper);
  background: var(--night);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hero {
  position: relative;
  height: 100%;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(180deg, #1b91ae 0 57%, #b98572 57% 100%);
}

.hero-art {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23,18,61,.65) 0%, rgba(23,18,61,0) 32%),
    linear-gradient(0deg, rgba(23,18,61,.72) 0%, rgba(23,18,61,0) 40%);
}

.hero-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem var(--page);
}

.brand {
  display: flex;
  flex-direction: column;
  font: 400 clamp(1.45rem, 2.2vw, 2.25rem)/.8 var(--display);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--night);
}
.brand span:last-child { color: var(--yellow); }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: .25rem;
  border-bottom: 2px solid currentColor;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.project-link span { transition: transform .55s var(--motion); }
.project-link:hover span,
.project-link:focus-visible span { transform: translate(.25rem, -.25rem); }

.rolling-title {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: clamp(9rem, 22vh, 14rem);
  left: 0;
  padding: clamp(1.8rem, 2.2vw, 2.5rem) 0;
  overflow: hidden;
  color: var(--paper);
  border-top: .16rem solid var(--paper);
  border-bottom: .16rem solid var(--paper);
  background: var(--night);
  filter: drop-shadow(0 .35rem 0 rgba(23,18,61,.3));
}

.motif-rail {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(2rem, 2.5vw, 2.8rem);
  padding: 0;
  background: var(--night);
  overflow: hidden;
}
.motif-rail-top { top: 0; }
.motif-rail-bottom { bottom: 0; transform: scaleY(-1); }

.motif-rail img {
  display: block;
  flex: 0 0 16.6667%;
  width: 16.6667%;
  height: 100%;
  object-fit: fill;
}

.rolling-track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: max-content;
  transform: translate3d(0,0,0);
  animation: title-roll 28s linear infinite;
  will-change: transform;
}

.rolling-track span {
  display: block;
  padding: 0 .35em;
  font: 400 clamp(4.8rem, 11vw, 11.5rem)/.8 var(--display);
  letter-spacing: .005em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: 1px var(--night);
}
.rolling-track span:nth-of-type(even) { color: var(--yellow); }
.rolling-track i { color: var(--orange); font-size: clamp(1rem, 2vw, 2rem); font-style: normal; }

.hero-bottom {
  position: absolute;
  z-index: 2;
  right: var(--page);
  bottom: 4.5rem;
  left: var(--page);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.hero-bottom > p {
  max-width: 21rem;
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: .85rem 1rem .85rem 1.25rem;
  color: var(--night);
  background: var(--yellow);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: color .55s var(--motion), background .55s var(--motion), transform .55s var(--motion);
}
.hero-cta span { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; color: var(--paper); background: var(--night); transition: transform .55s var(--motion); }
.hero-cta:hover,
.hero-cta:focus-visible { color: var(--paper); background: var(--orange); transform: translateY(-.25rem); }
.hero-cta:hover span,
.hero-cta:focus-visible span { transform: rotate(45deg); }

.art-credit {
  position: absolute;
  z-index: 2;
  right: var(--page);
  bottom: 9.5rem;
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
}

footer {
  position: fixed;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 3rem;
  padding: .7rem var(--page);
  color: var(--paper);
  background: var(--night);
  font-size: .85rem;
}

.wolfcourt-signature { display: inline-flex; align-items: center; gap: .5rem; }
.wolfcourt-signature > span { opacity: .68; }
.wolfcourt-signature strong { color: var(--yellow); font: 400 1rem/1 var(--display); letter-spacing: .035em; text-transform: uppercase; }
.wolfcourt-signature i { font-style: normal; transition: transform .5s var(--motion); }
.wolfcourt-signature:hover i { transform: translate(.2rem, -.2rem); }

@keyframes title-roll {
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 760px) {
  .hero-art { object-fit: contain; object-position: center; transform: scale(1.8); }
  .project-link { font-size: .8rem; }
  .rolling-title { bottom: 14.3rem; }
  .motif-rail img { flex-basis: 50%; width: 50%; }
  .motif-rail img:nth-child(n+3) { display: none; }
  .rolling-track { animation-duration: 23s; }
  .rolling-track span { font-size: clamp(4.7rem, 23vw, 7rem); }
  .hero-bottom { align-items: stretch; flex-direction: column; gap: 1.1rem; }
  .hero-bottom > p { max-width: 16rem; }
  .hero-cta { justify-content: space-between; width: 100%; }
  .art-credit { right: auto; bottom: 11.2rem; left: var(--page); font-size: .62rem; }
}

@media (max-width: 440px) {
  .hero-header { padding-top: 1rem; }
  .project-link { max-width: 7rem; text-align: right; }
  .rolling-title { bottom: 14.8rem; }
  .rolling-track span { -webkit-text-stroke-width: .5px; }
  .hero-bottom { bottom: 4rem; }
  .art-credit { bottom: 11.8rem; }
  footer { min-height: 2.8rem; font-size: .72rem; }
  footer > span { display: none; }
  .wolfcourt-signature { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rolling-track { animation-play-state: paused; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
