/* Fixed furniture: header, carousel HUD, and the scroll-progress bar. */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Transparent over the carousel, solid once the page content takes over. */
  background: rgba(11, 11, 12, 0);
  border-bottom: 1px solid rgba(242, 240, 236, 0);
  backdrop-filter: blur(14px);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}

.header[data-past='true'] {
  background: rgba(11, 11, 12, 0.78);
  border-bottom-color: var(--line-soft);
}

.header__brand { white-space: nowrap; }

.header__nav {
  display: flex;
  gap: 20px;
  min-width: 0;
}

.header__link {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
  white-space: nowrap;
  transition: color 200ms var(--ease);
}
.header__link:hover { color: var(--accent); }
.header__link[aria-current='true'] { color: var(--accent); }

/* --- HUD ------------------------------------------------------------------ */

.hud {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-hud);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px var(--gutter);
  pointer-events: none;
  opacity: 1;
  transition: opacity 400ms var(--ease);
}
.hud[data-past='true'] { opacity: 0; }
/* Once faded out the buttons must stop taking clicks and tab stops. */
.hud[data-past='true'] .hud__buttons { pointer-events: none; visibility: hidden; }

.hud__counter,
.hud__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-68);
}
.hud__hint { color: var(--ink-45); }

.hud__buttons {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.round {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(11, 11, 12, 0.45);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease),
              color 220ms var(--ease), opacity 220ms var(--ease);
}
.round:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.round:disabled { opacity: 0.35; cursor: not-allowed; }

/* --- Progress bar --------------------------------------------------------- */

.progress {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-header);
  height: 2px;
  pointer-events: none;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 120ms linear;
}
