/* The wordmark and sculpture form one centered composition. */
.header {
  position: fixed;
  z-index: 20;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  width: min(1120px, calc(100% - 48px));
  height: 64px;
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ffffffd9;
  border-radius: 18px;
  background: #fafbf5de;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 3px 8px #25301408, 0 12px 32px #2530140a;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 32px));
  transition: opacity .25s ease, transform .35s ease, visibility .35s;
}
.header.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.hero {
  --masthead-height: clamp(80px, 12svh, 112px);
  position: relative;
  height: 100svh;
  overflow: hidden;
}
.hero-masthead {
  position: relative;
  height: var(--masthead-height);
  margin: 0 6.5%;
  pointer-events: none;
}
.hero-masthead::before {
  content: '';
  position: absolute;
  top: clamp(20px, 3svh, 28px);
  left: 0;
  right: 0;
  height: clamp(38px, 6svh, 56px);
  border: 1px solid #252a25;
  border-radius: 2px;
  background:
    linear-gradient(105deg, #ffffff04, transparent 38%, #00000012 78%, #ffffff03),
    repeating-linear-gradient(0deg, #ffffff03 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #444a41 0%, #343a32 20%, #30362e 84%, #272d26 85%, #242a23 100%);
  box-shadow:
    inset 0 1px 0 #ffffff26,
    inset 1px 0 0 #ffffff0c,
    inset 0 -1px 0 #141b17,
    0 2px 2px #19221845,
    0 6px 7px -3px #19221840,
    0 15px 20px -10px #19221838;
}
.hero-composition {
  position: absolute;
  top: calc(50% + var(--masthead-height) / 2);
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 1320px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  margin-bottom: -.4em;
  white-space: nowrap;
  font: 400 clamp(80px, min(18vw, 29svh), 270px)/.9 var(--serif);
  letter-spacing: -.065em;
  pointer-events: none;
}
.sculpture-wrap {
  --sculpture-size: min(54vw, 51svh, 600px);
  position: relative;
  flex: none;
  margin-top: 0;
  width: var(--sculpture-size);
  height: var(--sculpture-size);
  aspect-ratio: 1;
}
.sculpture-shadow {
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 11%;
  height: 5%;
  background: #4e563820;
  border-radius: 50%;
  filter: blur(18px);
}
@media (max-width: 850px) and (orientation: portrait) {
  .hero h1 { font-size: min(22vw, 21svh); margin-bottom: 0; }
  .sculpture-wrap { --sculpture-size: min(88vw, 40svh); }
}
@media (max-width: 560px) {
  /* Keep the lowered paperweight within the one-screen hero. */
  .hero { --masthead-height: calc(clamp(120px, 18.5svh, 160px) + 16px); }
  .hero-masthead::before { top: calc(clamp(44px, 7.25svh, 64px) + 8px); }
  .header { width: calc(100% - 28px); height: 56px; padding: 0 17px; border-radius: 16px; top: max(12px, env(safe-area-inset-top)); }
}
@media (max-width: 560px) and (orientation: portrait) {
  .hero-composition { top: calc(50% + var(--masthead-height) / 2 - 12px); }
}
@media (max-height: 600px) and (orientation: portrait) {
  .sculpture-wrap { --sculpture-size: min(88vw, 34svh); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { --masthead-height: 44px; }
  .hero-masthead::before { top: 7px; height: 25px; }
  .header { top: 10px; height: 52px; }
  .hero h1 { font-size: 24svh; margin-bottom: -.25em; }
  .sculpture-wrap { --sculpture-size: 48svh; }
}
@media (prefers-reduced-motion: reduce) {
  .header { transition: none; }
}

/* A quiet analogue of the open glass loop when WebGL is unavailable. */
.sculpture-fallback {
  inset: 16% 19%;
  border: clamp(10px, 3vw, 19px) solid #b9c3b859;
  border-right-color: transparent;
  transform: rotate(-30deg) scaleY(.8);
  box-shadow: inset 2px 3px 6px #ffffffb0, -2px 3px 8px #5a634a14;
}
.sculpture-fallback div {
  position: absolute;
  width: 45%; height: 55%; left: 28%; top: 23%; margin: 0;
  background: radial-gradient(circle at 35% 28%, #fffce0, #e1e6a7 65%, #c9d28f);
  box-shadow: 0 0 20px #eacb8320;
}
