html,
body {
  width: 100%;
  height: 1000vh;
  font-family: var(--font-mono);
  background-color: var(--bg);
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
}

.wrapper {
  width: 100%;
  height: 100%;
  padding: 2em;
}

section {
  position: relative;
  width: 100vw;
  overflow-x: hidden;
}

.hero {
  width: 100vw;
  height: 100vh;
}

.portraits {
  width: 100vw;
  height: 100vh;
}

.services {
  width: 100vw;
  height: 100vh;
}

.carousel {
  width: 100vw;
  height: 100vh;
}

.archive {
  width: 100vw;
  height: 200vh;
  /* background-color: var(--bg); */
}

.footer {
  width: 100vw;
  height: 100vh;
  /* background-color: var(--bg); */
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  width: 35%;
  padding: 2em;
  z-index: 2;
}

.site-intro {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
}

.site-intro > div {
  flex: 1;
}

.site-intro p {
  transition: 0.3s all;
}

.site-intro.dark p {
  color: var(--text);
}

.site-intro.dark p.secondary {
  color: var(--text-secondary);
}

.site-intro.light p {
  color: var(--text-light);
}

nav {
  position: fixed;
  top: 2em;
  left: 2em;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.nav-item {
  position: relative;
  padding: 0.25rem;
  border-radius: 0.15rem;
  overflow: hidden;
}

.nav-item .progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-darker);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.nav-item .link {
  position: relative;
  z-index: 100;
}

nav .link button {
  font-size: 0.75rem;
  text-transform: uppercase;
  line-height: 120%;
  transition: color 0.3s;
}

nav.dark .link button {
  color: var(--text);
}

nav.light .link button {
  color: var(--text-light);
}

nav .link button span {
  position: relative;
  top: -0.15rem;
  padding-right: 0.4rem;
  padding-left: 0.2rem;
  font-size: 0.6rem;
}

@media (max-width: 900px) {
  .site-header {
    width: 100%;
  }

  .site-intro {
    gap: 2em;
    flex-direction: column;
  }

  .site-intro > div {
    text-align: right;
  }
}

/* --- scrim behind the fixed chrome -------------------------------------
 * The nav sits top-left and the name/date block top-right, both fixed, and
 * both have full-width rows scrolling underneath them: the services copy is a
 * right-hand column, and every archive row's title and year pass directly
 * under the date. In the template the two texts simply overlapped and neither
 * could be read. A gradient in the section's own colour separates them, and it
 * only appears where that collision happens — over the carousel photographs
 * the white chrome already reads, and a scrim there would flatten the design.
 */
nav::before,
.site-header::before {
  content: "";
  position: absolute;
  inset: -2em;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.site-header::before {
  inset: 0 0 -2em 0;
}

nav.scrim::before,
.site-header.scrim::before {
  opacity: 1;
}

nav.dark.scrim::before,
.site-header.dark.scrim::before {
  background: linear-gradient(to bottom, var(--bg) 55%, rgba(243, 243, 240, 0));
}

nav.light.scrim::before,
.site-header.light.scrim::before {
  background: linear-gradient(to bottom, var(--bg-dark) 55%, rgba(25, 27, 32, 0));
}
