.t4d-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: transparent;
  pointer-events: none;
}

.t4d-logo {
  pointer-events: all;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(216, 206, 184, 0.72);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.t4d-logo:hover {
  color: rgba(216, 206, 184, 0.95);
}

/* Desktop: sits in the header row between logo and star */
.t4d-items {
  position: absolute;
  top: 0;
  left: 9rem;
  right: 4.5rem;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  pointer-events: none;
}

.t4d-items.open {
  pointer-events: all;
}

.t4d-nav-item {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(216, 206, 184, 0.78);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.28s ease, transform 0.28s ease, color 0.2s ease;
  pointer-events: none;
}

.t4d-nav-item.in {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  animation: t4d-glow-bloom 0.75s ease forwards;
}

.t4d-nav-item:hover {
  color: rgba(216, 206, 184, 1);
}

@keyframes t4d-glow-bloom {
  0%   { text-shadow: none; }
  35%  { text-shadow: 0 0 10px rgba(216,206,184,0.85), 0 0 22px rgba(216,206,184,0.45); }
  100% { text-shadow: none; }
}

.t4d-star {
  pointer-events: all;
  background: none;
  border: none;
  color: rgba(216, 206, 184, 0.78);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  text-shadow: 0 0 8px rgba(216,206,184,0.5), 0 0 16px rgba(216,206,184,0.28);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), color 0.2s ease, text-shadow 0.3s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.t4d-star:hover {
  color: rgba(216, 206, 184, 1);
  text-shadow: 0 0 12px rgba(216,206,184,0.7), 0 0 24px rgba(216,206,184,0.4);
}

.t4d-star.open {
  transform: rotate(36deg);
  color: rgba(216, 206, 184, 1);
  text-shadow: 0 0 14px rgba(216,206,184,0.9), 0 0 28px rgba(216,206,184,0.55);
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .t4d-nav {
    padding: 0 1.5rem;
  }

  .t4d-items {
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
    padding: 0 1.5rem;
    background: rgba(8, 8, 8, 0.93);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.35s ease;
  }

  .t4d-items.open {
    max-height: 400px;
    padding: 0.4rem 1.5rem 1rem;
  }

  .t4d-nav-item {
    padding: 0.7rem 0;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    transform: translateX(24px);
  }
}
