/* Another Machines official site: 10k showroom pass.
   This layer is intentionally small and late in the cascade: it corrects the public
   homepage direction without disturbing the deeper catalog or VOLTRA pages. */

:root {
  --am-ink: #040505;
  --am-panel: #0a0b0b;
  --am-panel-2: #111313;
  --am-paper: #f4f1eb;
  --am-muted: rgba(244, 241, 235, .68);
  --am-red: #e61919;
  --am-red-deep: #8d0d0d;
  --am-line: rgba(244, 241, 235, .12);
  --am-soft-line: rgba(244, 241, 235, .075);
  --am-ease: cubic-bezier(.16, 1, .3, 1);
}

html {
  scroll-padding-top: 104px;
}

body {
  background:
    radial-gradient(circle at 76% 8%, rgba(196, 24, 24, .12), transparent 29rem),
    radial-gradient(circle at 12% 42%, rgba(16, 196, 190, .055), transparent 28rem),
    linear-gradient(180deg, #030404 0%, #070808 46%, #040505 100%) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 28%, #000, transparent 72%);
}

.site-header {
  top: 14px !important;
}

.site-header .nav {
  min-height: 74px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(244, 241, 235, .13) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .035)),
    rgba(4, 5, 5, .78) !important;
  box-shadow: 0 28px 86px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .09) !important;
  backdrop-filter: blur(22px) saturate(1.15);
}

.brand {
  gap: 14px !important;
}

.brand-mark {
  width: 48px !important;
  height: 48px !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .045) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 34px rgba(0, 0, 0, .34) !important;
}

.brand span:last-child {
  font-size: clamp(.82rem, 1vw, 1rem) !important;
  letter-spacing: .035em !important;
}

.nav-links {
  gap: 8px !important;
}

.nav-links a,
.nav-links .store-link {
  min-height: 42px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  font-size: .76rem !important;
  letter-spacing: .035em !important;
  transition:
    transform 520ms var(--am-ease),
    background-color 520ms var(--am-ease),
    color 520ms var(--am-ease),
    border-color 520ms var(--am-ease) !important;
}

.nav-links a:not(.store-link) {
  border: 1px solid transparent !important;
}

.nav-links a:not(.store-link):hover,
.nav-links a:not(.store-link):focus-visible {
  color: #fff !important;
  border-color: rgba(244, 241, 235, .15) !important;
  background: rgba(255, 255, 255, .055) !important;
  transform: translateY(-1px);
}

.nav-links .store-link {
  box-shadow: 0 18px 42px rgba(230, 25, 25, .24), inset 0 1px 0 rgba(255, 255, 255, .16) !important;
}

.section-rail {
  right: 18px !important;
  border-color: rgba(244, 241, 235, .12) !important;
  background: rgba(4, 5, 5, .5) !important;
  backdrop-filter: blur(18px);
}

.system-strip {
  display: none !important;
}

.hero {
  min-height: clamp(780px, 92dvh, 1040px) !important;
  padding: clamp(132px, 12vw, 178px) 0 clamp(76px, 8vw, 120px) !important;
  border-radius: 0 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) !important;
  overflow: hidden !important;
}

.hero-bg {
  filter: contrast(1.13) saturate(1.04) brightness(1.04) !important;
  background:
    linear-gradient(90deg, rgba(3, 4, 4, .96) 0%, rgba(3, 4, 4, .7) 34%, rgba(3, 4, 4, .08) 58%, rgba(3, 4, 4, .72) 100%),
    linear-gradient(180deg, rgba(3, 4, 4, .88) 0%, rgba(3, 4, 4, .1) 24%, rgba(3, 4, 4, .88) 100%),
    url("../assets/another-machines-hero.jpg") 61% center / cover no-repeat !important;
}

.hero::before {
  opacity: .42 !important;
}

.hero-cinema__reticle,
.hero-cinema__reticle::before,
.hero-cinema__reticle::after,
.hero-cinema__meter,
.hero-cinema__frame {
  display: none !important;
}

.hero-grid {
  align-items: end !important;
  gap: clamp(28px, 4.2vw, 62px) !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr) !important;
}

.hero-copy {
  max-width: 920px !important;
  padding-top: clamp(18px, 4vw, 42px) !important;
}

.hero-logo-plate {
  width: clamp(96px, 10vw, 132px) !important;
  height: clamp(96px, 10vw, 132px) !important;
  margin-bottom: clamp(28px, 4vw, 44px) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(230, 25, 25, .96), rgba(154, 11, 11, .96)) !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12) inset !important;
}

.hero-kicker {
  width: fit-content !important;
  max-width: min(100%, 790px) !important;
  margin-bottom: clamp(22px, 3vw, 34px) !important;
  border-color: rgba(230, 25, 25, .58) !important;
  background: rgba(3, 4, 4, .62) !important;
  color: rgba(244, 241, 235, .92) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .34) !important;
  white-space: normal !important;
}

.hero h1 {
  max-width: 860px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: .045em !important;
  line-height: .95 !important;
  text-wrap: balance;
}

.hero-heading-line {
  display: block !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  font-size: clamp(3.72rem, 5.48vw, 4.95rem) !important;
  line-height: .95 !important;
  letter-spacing: -.04em !important;
}

.hero-heading-line.hot {
  color: var(--am-red) !important;
  text-shadow: 0 0 38px rgba(230, 25, 25, .44), 0 16px 72px rgba(0, 0, 0, .58) !important;
}

.hero .lead {
  max-width: 760px !important;
  margin-top: clamp(24px, 3.4vw, 38px) !important;
  color: rgba(244, 241, 235, .84) !important;
  font-size: clamp(1.08rem, 1.8vw, 1.55rem) !important;
  line-height: 1.46 !important;
}

.hero .hero-actions {
  position: relative !important;
  z-index: 4 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-top: clamp(28px, 4vw, 46px) !important;
  padding: 0 !important;
  transform: none !important;
}

.hero .hero-actions::before,
.hero .hero-actions::after {
  content: none !important;
}

.button {
  min-height: 54px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  transition:
    transform 560ms var(--am-ease),
    box-shadow 560ms var(--am-ease),
    background-color 560ms var(--am-ease) !important;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) !important;
}

.button.primary {
  box-shadow: 0 20px 56px rgba(230, 25, 25, .28), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

.button.secondary {
  border-color: rgba(244, 241, 235, .18) !important;
  background: rgba(255, 255, 255, .065) !important;
}

.hero-launches {
  width: min(100%, 820px) !important;
  margin-top: clamp(26px, 3.8vw, 48px) !important;
  padding: 8px !important;
  gap: 8px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(244, 241, 235, .12) !important;
  background: rgba(4, 5, 5, .6) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.hero-launches a {
  min-width: 150px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .045) !important;
}

.hero-launches img {
  width: 70px !important;
  height: 70px !important;
  border-radius: 12px !important;
}

.hero-machine {
  transform: translateY(26px) !important;
}

.cover-node {
  box-shadow: 0 26px 70px rgba(0, 0, 0, .58), 0 0 0 1px rgba(244, 241, 235, .12) inset !important;
}

.hero-data {
  margin-top: 18px !important;
  border-color: rgba(244, 241, 235, .12) !important;
  background: rgba(4, 5, 5, .62) !important;
}

.ticker {
  margin-top: 0 !important;
  border-block-color: rgba(244, 241, 235, .09) !important;
  background: rgba(255, 255, 255, .025) !important;
}

.brand-carousel {
  padding: clamp(34px, 5vw, 60px) 0 !important;
}

.brand-carousel-head {
  max-width: 1440px !important;
  margin-inline: auto !important;
  padding-inline: clamp(18px, 4vw, 44px) !important;
}

.logo-cell {
  border-color: rgba(244, 241, 235, .1) !important;
  background: rgba(255, 255, 255, .04) !important;
}

.logo-cell img[src*="elektron"] {
  filter: invert(1) brightness(1.45) contrast(1.08) !important;
}

.product-stage {
  gap: clamp(16px, 2.2vw, 28px) !important;
}

.product-card,
.department-product,
.machine-item,
.intent-card,
.trust-item {
  border-color: rgba(244, 241, 235, .11) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018)),
    rgba(9, 10, 10, .86) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.product-card img {
  aspect-ratio: 16 / 11 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.product-card.featured img,
.product-card.wide img {
  aspect-ratio: 16 / 9 !important;
}

.product-info h3,
.department-product h4,
.machine-item h3,
.intent-card h2 {
  text-wrap: balance;
}

.product-info p,
.department-product p,
.machine-item p,
.intent-card p {
  color: rgba(244, 241, 235, .72) !important;
  line-height: 1.55 !important;
}

.machine-intent {
  padding-block: clamp(54px, 8vw, 116px) !important;
}

.intent-grid {
  display: grid !important;
  grid-template-columns: 1.15fr .85fr !important;
  gap: clamp(16px, 2vw, 24px) !important;
}

.intent-card {
  min-height: 320px !important;
  padding: clamp(24px, 3.6vw, 42px) !important;
  justify-content: flex-end !important;
  overflow: hidden !important;
}

.intent-card:first-child {
  grid-row: span 2;
}

.intent-card h2 {
  max-width: 12ch !important;
  font-size: clamp(2.4rem, 4.7vw, 5.6rem) !important;
  line-height: .9 !important;
  letter-spacing: -.035em !important;
}

.machine-visibility {
  position: relative !important;
  overflow: hidden !important;
  margin-block: clamp(52px, 7vw, 96px) !important;
  padding: clamp(28px, 5vw, 62px) !important;
  border: 1px solid rgba(244, 241, 235, .12) !important;
  border-radius: clamp(24px, 4vw, 42px) !important;
  background:
    radial-gradient(circle at 72% 26%, rgba(230, 25, 25, .18), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .018)),
    rgba(6, 7, 7, .92) !important;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  filter: none !important;
}

.machine-visibility::before {
  opacity: .22 !important;
}

.machine-visibility .machine-copy h2 {
  font-size: clamp(3.2rem, 7vw, 7rem) !important;
  line-height: .88 !important;
  letter-spacing: -.038em !important;
}

.machine-visibility .machine-copy p {
  max-width: 68ch !important;
  color: rgba(244, 241, 235, .75) !important;
}

.machine-list {
  gap: 14px !important;
}

.machine-item {
  grid-template-columns: minmax(112px, 180px) 1fr !important;
  align-items: stretch !important;
  padding: 10px !important;
}

.machine-item img {
  width: 100% !important;
  height: auto !important;
  min-height: 132px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .logo-rail,
  .hero::before,
  .hero-cinema__beam,
  .hero-cinema__scan {
    animation: none !important;
  }
}

@media (max-width: 1040px) {
  .site-header {
    top: 10px !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-machine {
    transform: none !important;
  }

  .intent-grid {
    grid-template-columns: 1fr !important;
  }

  .intent-card:first-child {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 86px;
  }

  body::before {
    background-size: 72px 72px;
    opacity: .12;
  }

  .site-header .nav {
    min-height: 64px !important;
    border-radius: 18px !important;
    padding: 8px 10px !important;
  }

  .brand span:last-child {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 42px !important;
    height: 42px !important;
    border-radius: 13px !important;
  }

  .hero {
    min-height: auto !important;
    padding: 104px 0 46px !important;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(3, 4, 4, .78) 0%, rgba(3, 4, 4, .18) 34%, rgba(3, 4, 4, .88) 100%),
      linear-gradient(90deg, rgba(3, 4, 4, .9), rgba(3, 4, 4, .28) 56%, rgba(3, 4, 4, .64)),
      url("../assets/another-machines-hero.jpg") 63% center / cover no-repeat !important;
  }

  .hero-copy {
    padding-top: 0 !important;
  }

  .hero-logo-plate {
    width: 82px !important;
    height: 82px !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    border-radius: 20px !important;
  }

  .hero-kicker {
    margin-bottom: 18px !important;
    padding: 9px 12px !important;
    font-size: .72rem !important;
    line-height: 1.35 !important;
  }

  .hero-heading-line {
    font-size: clamp(3.35rem, 17vw, 4.9rem) !important;
    line-height: 1.02 !important;
    white-space: normal !important;
    width: 100% !important;
    transform: none !important;
    clip-path: none !important;
  }

  .hero h1 {
    gap: .14em !important;
  }

  .hero .lead {
    margin-top: 22px !important;
    font-size: 1.03rem !important;
  }

  .hero .hero-actions {
    gap: 10px !important;
    margin-top: 26px !important;
    padding-right: 0 !important;
  }

  .hero .hero-actions .button {
    flex: 1 1 170px !important;
    min-height: 50px !important;
    justify-content: center !important;
  }

  .hero-launches {
    width: 100% !important;
    margin-top: 24px !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity;
  }

  .hero-launches a {
    flex: 0 0 74vw !important;
    scroll-snap-align: start;
  }

  .hero-launches img {
    width: 82px !important;
    height: 82px !important;
  }

  .section-rail {
    display: none !important;
  }

  .product-stage {
    grid-template-columns: 1fr !important;
  }

  .product-card img,
  .product-card.featured img,
  .product-card.wide img {
    aspect-ratio: 16 / 10 !important;
    min-height: 220px !important;
  }

  .machine-visibility {
    margin-inline: 12px !important;
    padding: 20px !important;
    border-radius: 28px !important;
  }

  .machine-visibility .machine-copy h2 {
    font-size: clamp(2.8rem, 14vw, 4.4rem) !important;
  }

  .machine-item {
    grid-template-columns: 1fr !important;
  }

  .machine-item img {
    min-height: 220px !important;
    aspect-ratio: 16 / 10 !important;
  }
}

@media (max-width: 430px) {
  .hero-heading-line {
    font-size: clamp(3rem, 16vw, 4.2rem) !important;
  }

  .hero .hero-actions .button {
    flex-basis: 100% !important;
  }

  .hero-launches a {
    flex-basis: 82vw !important;
  }

  .product-card img,
  .product-card.featured img,
  .product-card.wide img,
  .machine-item img {
    min-height: 250px !important;
  }
}

/* Emergency hero correction: preserve the cinematic cover, but keep it readable and unclipped. */
.hero {
  overflow: hidden !important;
}

.hero-bg {
  opacity: 1 !important;
  filter: contrast(1.04) saturate(1.12) brightness(1.42) !important;
  background:
    linear-gradient(90deg, rgba(3, 4, 4, .78) 0%, rgba(3, 4, 4, .42) 29%, rgba(3, 4, 4, .08) 50%, rgba(3, 4, 4, .02) 100%),
    linear-gradient(180deg, rgba(3, 4, 4, .3) 0%, rgba(3, 4, 4, .02) 32%, rgba(3, 4, 4, .5) 100%),
    url("../assets/another-machines-hero.jpg") 62% center / cover no-repeat !important;
}

.hero-bg::before,
.hero-bg::after {
  content: none !important;
  opacity: 0 !important;
}

.hero::before {
  opacity: .08 !important;
}

.hero::after {
  opacity: .46 !important;
}

.hero-cinema__aperture,
.hero-cinema__beam,
.hero-cinema__scan,
.hero-cinema__ghost {
  opacity: .08 !important;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr) !important;
}

.hero-copy {
  max-width: min(100%, 860px) !important;
  overflow: visible !important;
}

.hero h1 {
  max-width: min(100%, 860px) !important;
  overflow: visible !important;
}

.hero-heading-line {
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  font-size: clamp(4rem, 5.42vw, 6rem) !important;
  line-height: .9 !important;
  letter-spacing: 0 !important;
  overflow: visible !important;
  clip-path: none !important;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-heading-line {
    max-width: 100% !important;
    white-space: normal !important;
  }
}

@media (max-width: 720px) {
  .hero-bg {
    filter: contrast(1.03) saturate(1.1) brightness(1.3) !important;
    background:
      linear-gradient(180deg, rgba(3, 4, 4, .42) 0%, rgba(3, 4, 4, .06) 30%, rgba(3, 4, 4, .76) 100%),
      linear-gradient(90deg, rgba(3, 4, 4, .7) 0%, rgba(3, 4, 4, .18) 58%, rgba(3, 4, 4, .08) 100%),
      url("../assets/another-machines-hero.jpg") 60% center / cover no-repeat !important;
  }

  .hero-heading-line {
    font-size: clamp(2.72rem, 14vw, 4.08rem) !important;
    line-height: .92 !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
}

@media (max-width: 430px) {
  .hero-heading-line {
    font-size: clamp(2.52rem, 13.2vw, 3.58rem) !important;
  }
}
