:root {
  --asrx-purple: #401268;
  --asrx-violet: #6b1fa9;
  --asrx-ink: #1a0b2e;
  --asrx-paper: #f7f4f1;
  --asrx-white: #ffffff;
  --asrx-lilac: #e9d7f7;
  --asrx-panel: #f3eef7;
  --asrx-muted: #5c5268;
  --asrx-copper: #b87333;
  --asrx-aluminium: #c5c9ce;
  --asrx-footer: #2a0a48;
}

html {
  scroll-behavior: smooth;
  background: var(--asrx-footer);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--asrx-white);
  color: var(--asrx-ink);
  font-family: "Open Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

::selection {
  background: color-mix(in srgb, var(--asrx-violet) 24%, white);
}

:focus-visible {
  outline: 2px solid var(--asrx-violet);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  border-radius: 999px;
  background: var(--asrx-purple);
  color: white;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.section-shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.section-shell-wide {
  width: min(100% - 2rem, 88rem);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .section-shell,
  .section-shell-wide {
    width: min(100% - 5rem, 76rem);
  }
}

@media (min-width: 1280px) {
  .section-shell,
  .section-shell-wide {
    width: min(100% - 8rem, 74rem);
  }
}

main .leading-7 {
  line-height: 1.6;
}

.display-serif.font-bold {
  font-weight: 700;
}

#home-hero,
#source-products,
#product-aluminium,
#product-copper,
#source-markets,
#recycle-report,
#recycle-advantage,
[id^="market-"] {
  scroll-margin-top: 5.5rem;
}

.display-serif {
  font-family: "Lora", Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.panel-muted {
  background: var(--asrx-panel);
  border: 1px solid color-mix(in srgb, var(--asrx-lilac) 80%, white);
  border-radius: 1.75rem;
}

.dark-chapter {
  background: var(--asrx-purple);
  color: white;
}

.cta-banner {
  background: linear-gradient(90deg, #401268 0%, #6b1fa9 100%);
  border-radius: 1.25rem;
}

.icon-circle {
  display: flex;
  height: 4rem;
  width: 4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--asrx-lilac);
  color: var(--asrx-purple);
}

.field-input {
  width: 100%;
  border-radius: 0.35rem;
  border: 1px solid #c8bdd3;
  background: var(--asrx-white);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--asrx-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus {
  border-color: var(--asrx-violet);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--asrx-violet) 18%, transparent);
  outline: none;
}

.field-label-inline {
  font-size: 0.72rem;
  color: var(--asrx-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-md {
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
}

.btn-primary {
  background: var(--asrx-purple);
  color: white;
  border: 1px solid var(--asrx-purple);
}

.btn-primary:hover {
  background: white;
  color: var(--asrx-purple);
}

.btn-secondary {
  background: var(--asrx-white);
  color: var(--asrx-purple);
  border: 1px solid var(--asrx-purple);
}

.btn-secondary:hover {
  background: var(--asrx-purple);
  color: white;
}

.btn-inverse {
  background: var(--asrx-white);
  color: var(--asrx-purple);
  border: 1px solid var(--asrx-white);
}

.btn-inverse:hover {
  background: var(--asrx-lilac);
}

.btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid white;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

#mobile-menu {
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.55s;
}

#mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

html.asrx-motion #mobile-menu nav a,
html.asrx-motion #mobile-menu .btn {
  opacity: 0;
  transform: translateY(16px);
}

html.asrx-motion #mobile-menu.is-open nav a,
html.asrx-motion #mobile-menu.is-open .btn {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html.asrx-motion #mobile-menu.is-open nav a:nth-child(1) { transition-delay: 0.07s; }
html.asrx-motion #mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.14s; }
html.asrx-motion #mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.21s; }
html.asrx-motion #mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.28s; }
html.asrx-motion #mobile-menu.is-open .btn { transition-delay: 0.35s; }

header[data-guide="menu"] {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

html.asrx-motion header.is-hidden {
  transform: translateY(-110%);
}

html.asrx-motion [data-reveal],
html.asrx-motion [data-motion="hero-copy"],
html.asrx-motion [data-motion="offer"],
html.asrx-motion [data-motion="process-step"] {
  opacity: 0;
  transform: translateY(32px);
}

html.asrx-motion [data-motion="hero-copy"],
html.asrx-motion [data-guide="source-hero"] {
  opacity: 1;
  transform: none;
}

.process-dots {
  width: 1px;
  flex: 1 1 auto;
  min-height: 2rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.75) 0 2px,
    transparent 2px 8px
  );
}

.hero-fade {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 78%, transparent 100%);
}

html.asrx-motion [data-motion="hero-still"] {
  transform: none;
}


html.asrx-boot {
  overflow: hidden;
}

#asrx-loader,
#asrx-veil,
body.guide-preview #asrx-loader,
body.guide-preview #asrx-veil {
  display: none;
}

html.asrx-boot #asrx-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--asrx-purple);
  color: white;
}

html.asrx-boot.is-dismissing #asrx-loader {
  transform: translateY(-100%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.asrx-loader-word {
  margin-top: 1.25rem;
  line-height: 1;
}

.asrx-loader-logo {
  opacity: 0;
  transform: translateY(8px);
}

.asrx-loader-bar {
  width: 7.5rem;
  height: 1px;
  margin-top: 1.25rem;
  background: rgba(255, 255, 255, 0.25);
}

.asrx-loader-bar span {
  display: block;
  height: 100%;
  background: white;
  transform: scaleX(0);
  transform-origin: left center;
}

#asrx-loader-skip {
  position: absolute;
  bottom: 1.75rem;
  border: 0;
  background: transparent;
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

#asrx-loader-skip.is-on {
  opacity: 0.8;
  pointer-events: auto;
}

#asrx-veil {
  position: fixed;
  left: 0;
  right: 0;
  top: 100%;
  height: 100%;
  z-index: 80;
  display: block;
  background: var(--asrx-purple);
  pointer-events: none;
}

#asrx-veil.is-covering {
  top: 0;
  transition: top 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

html.asrx-enter #asrx-veil {
  top: 0;
  transition: none;
}

html.asrx-enter.asrx-leaving #asrx-veil {
  top: -100%;
  transition: top 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

html.asrx-motion [data-motion="report"] {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

[data-motion="report"] {
  container-type: size;
}

/* Until the real ratio is known, keep the picture inside the square that fits in the circle. */
.report-cover {
  display: block;
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 70%;
  max-width: calc(100cqw / sqrt(2));
  max-height: calc(100cqh / sqrt(2));
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  #mobile-menu,
  header[data-guide="menu"],
  html.asrx-motion [data-reveal],
  html.asrx-motion [data-motion="hero-copy"],
  html.asrx-motion [data-motion="offer"],
  html.asrx-motion [data-motion="process-step"],
  html.asrx-motion [data-motion="circular"],
  html.asrx-motion [data-motion="hero-still"] {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.media-frame {
  display: inline-grid;
  position: relative;
  max-width: 100%;
  vertical-align: top;
}

.media-frame > img {
  grid-area: 1 / 1;
}

.media-frame.media-pending::before {
  content: "";
  grid-area: 1 / 1;
  border-radius: 0.75rem;
  background: linear-gradient(100deg, #efe8f6 18%, #ffffff 42%, #efe8f6 68%);
  background-size: 220% 100%;
  animation: media-shimmer 1.15s ease-in-out infinite;
}

.media-frame.media-pending > img {
  opacity: 0;
}

.media-frame.media-ready > img {
  opacity: 1;
  transition: opacity 0.45s ease;
}

@keyframes media-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .media-frame.media-pending::before {
    animation: none;
  }

  .media-frame.media-ready > img {
    transition: none;
  }
}

#business-type-group input {
  appearance: none;
  margin-top: 0.15rem;
  height: 0.95rem;
  width: 0.95rem;
  border: 1.5px solid var(--asrx-purple);
  border-radius: 999px;
  background: white;
}
#business-type-group input:checked {
  background: radial-gradient(circle, var(--asrx-purple) 42%, white 46%);
  box-shadow: none;
}
