:root {
  --ink: #2b3326;
  --ink-soft: #6b7566;
  --ribbon-dark: #7e9682;
  --ribbon-light: #b9c99b;
  --ring: rgba(126, 150, 139, 0.35);
}

/* page entrance: the content slides up a little while a cover in the page colour fades away.
   Fading a cover is far cheaper than blending the whole tall page, which kept it smooth. The nav stays still. */
@keyframes page-slide {
  from { transform: translateY(24px); }
}

@keyframes page-reveal {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.home,
.page,
.stage {
  animation: page-slide 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) backwards;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: inherit;
  animation: page-reveal 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .home,
  .page,
  .stage { animation: none; }

  body::before { display: none; }
}

html.scale-page { zoom: var(--page-scale, 1); }
html.scale-nav .nav { zoom: var(--page-scale, 1); }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 124px;
  background: #fff;
}

.logo-mark {
  position: absolute;
  left: 118px;
  top: 60px;
  display: block;
  width: 45px;
  height: 45px;
  line-height: 0;
}

.logo-mark img {
  display: block;
  width: 45px;
  height: 45px;
}

.nav-links {
  position: absolute;
  right: 118px;
  top: 74px;
  display: flex;
  gap: 95px;
  font-size: 20px;
  color: #000;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li { white-space: nowrap; }

.nav-links a.active { font-weight: 700; }

.nav-links a {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background: rgba(117, 160, 139, 0.5);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}
