/*
 * Workshop pages use the same fixed artwork, atmospheric overlays, and
 * navigation proportions as the Nord Paradigm homepage.
 */

body.atelier-page {
  background: var(--ink);
}

body.atelier-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 75% -10%, rgba(79, 195, 247, 0.05), transparent 60%),
    radial-gradient(900px 700px at 10% 110%, rgba(212, 168, 83, 0.04), transparent 60%),
    linear-gradient(rgba(196, 213, 232, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 213, 232, 0.022) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}

body.atelier-page::after {
  z-index: 60;
  opacity: 0.5;
}

.atelier-page .hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.atelier-page .hero-bg-inner {
  position: absolute;
  inset: 0;
  transform-origin: 50% 60%;
  animation: workshopBackgroundDrift 46s ease-in-out infinite alternate;
}

.atelier-page .hero-bg picture,
.atelier-page .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atelier-page .hero-bg img {
  object-fit: cover;
  object-position: center;
}

.atelier-page .hero-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 10, 20, 0.5) 0%, rgba(6, 10, 20, 0.22) 42%, rgba(6, 10, 20, 0.02) 70%, rgba(6, 10, 20, 0.25) 100%),
    linear-gradient(180deg, rgba(6, 10, 20, 0.5) 0%, rgba(6, 10, 20, 0.05) 24%, rgba(6, 10, 20, 0.05) 72%, rgba(6, 10, 20, 0.72) 100%);
}

.atelier-page .nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.atelier-page .nav-brand-name {
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.atelier-page .nav-brand-name .brand-nord {
  color: var(--text);
}

.atelier-page .nav-brand-name .brand-paradigm {
  color: var(--amber);
}

.atelier-page .nav-brand-tagline {
  display: none;
}

.atelier-page .nav-logo img,
.atelier-page .nav-shield {
  max-height: none;
}

body.atelier-page:not(.booking-page) main > section {
  background: rgba(6, 10, 20, 0.42) !important;
}

body.atelier-page:not(.booking-page) main > section:first-child {
  background: rgba(6, 10, 20, 0.18) !important;
}

.atelier-page .midi-workshop-hero {
  padding-top: calc(var(--nav-h) + 52px);
}

/* Keep every workshop index card equal without constraining its content. */
.atelier-index-hero .atelier-event-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

@media (max-width: 768px) {
  .atelier-index-hero .atelier-event-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@keyframes workshopBackgroundDrift {
  from { transform: scale(1); }
  to { transform: scale(1.055); }
}

@media (prefers-reduced-motion: reduce) {
  .atelier-page .hero-bg-inner {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .atelier-page .nav-brand-name {
    font-size: 1.72rem;
  }
}

@media (max-width: 760px) {
  .atelier-page .nav {
    height: 72px;
    background: rgba(6, 10, 20, 0.82);
    border-bottom-color: var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .atelier-page .nav-logo img,
  .atelier-page .nav-shield {
    height: 52px;
  }

  .atelier-page .nav-brand-name {
    font-size: clamp(1rem, 5.2vw, 1.42rem);
  }

  .atelier-page .midi-workshop-hero {
    padding-top: 108px;
  }
}
