.machine-page {
  min-height: 100vh;
  background: var(--bg);
}

.machine-page .site-nav {
  position: absolute;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.machine-page .nav-links a[aria-current="page"] {
  color: #d59afa;
}

.machine-page .nav-links a[aria-current="page"]::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 12px;
  background: rgba(180, 108, 255, 0.7);
}

.machine-main {
  width: min(calc(100% - 72px), 1420px);
  margin: 0 auto;
  padding: 138px 0 clamp(120px, 14vw, 210px);
}

.machine-hero {
  min-height: min(980px, calc(100vh - 90px));
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
  align-items: center;
  gap: clamp(48px, 7vw, 118px);
}

.machine-hero-copy {
  position: relative;
  z-index: 1;
  padding-left: clamp(8px, 2vw, 30px);
  animation: machine-fade 1100ms ease both;
}

.machine-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(4.7rem, 7.6vw, 8.25rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #f2edf2;
}

.machine-mark {
  display: block;
  margin: clamp(38px, 5vw, 70px) 0 clamp(30px, 4vw, 50px);
  font-size: 1.45rem;
  color: #c66ee8;
}

.machine-invitation {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 2.15vw, 2.05rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(244, 241, 236, 0.8);
}

.machine-hero-media {
  min-width: 0;
  margin: 0;
  animation: machine-fade 1400ms 120ms ease both;
}

.machine-hero-media img {
  display: block;
  width: 100%;
  max-height: 900px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(141, 122, 232, 0.1));
  animation: machine-breathe 7s ease-in-out infinite alternate;
}

.machine-location {
  width: min(100%, 1250px);
  min-height: 310px;
  margin: clamp(80px, 11vw, 160px) auto 0;
  padding: clamp(48px, 6vw, 82px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  animation: machine-fade 1200ms 240ms ease both;
}

.machine-location-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d17ce9;
}

.machine-location-eyebrow span {
  margin-right: 18px;
}

.machine-location h2 {
  margin-top: 30px;
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #f2edf2;
}

.machine-location-copy > p:last-child {
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.machine-directions {
  flex: none;
  min-width: 220px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@keyframes machine-fade {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes machine-breathe {
  from { filter: drop-shadow(0 0 18px rgba(141, 122, 232, 0.08)); }
  to { filter: drop-shadow(0 0 30px rgba(141, 122, 232, 0.16)); }
}

@media (prefers-reduced-motion: reduce) {
  .machine-hero-copy,
  .machine-hero-media,
  .machine-location,
  .machine-hero-media img {
    animation: none;
  }
}

@media (max-width: 960px) {
  .machine-main {
    width: min(calc(100% - 40px), 760px);
    padding-top: 130px;
  }

  .machine-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .machine-hero-copy {
    padding-left: 0;
  }

  .machine-title {
    font-size: clamp(4rem, 14vw, 7rem);
  }

  .machine-hero-media img {
    max-height: 840px;
  }

  .machine-location {
    align-items: flex-start;
    flex-direction: column;
    gap: 48px;
  }
}

@media (max-width: 560px) {
  .machine-main {
    width: min(calc(100% - 28px), 480px);
    padding-bottom: 110px;
  }

  .machine-title {
    font-size: clamp(3.3rem, 15vw, 5rem);
  }

  .machine-hero {
    gap: 48px;
  }

  .machine-location {
    min-height: 0;
    margin-top: 92px;
    padding: 36px 26px;
    border-radius: 18px;
  }

  .machine-location h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .machine-directions {
    width: 100%;
  }
}
