/* Holding page V3 — three operational assets plus the connecting rail story. */

.asset-network {
  overflow: hidden;
  padding-block: clamp(96px, 10vw, 150px);
  background:
    radial-gradient(circle at 84% 6%, rgba(99, 154, 89, 0.15), transparent 32%),
    var(--green-deep);
}

.asset-network > .shell {
  max-width: 1440px;
}

/* The original sweep was timed for one row of cards. The integrated map adds
   a second story beat, so give it a full reading window before the stockpile
   transition rises over the band. */
.home--sweep .asset-network:has(+ .divider) {
  padding-bottom: clamp(210px, 26vh, 320px);
}

/* Match the generated divider more closely to SCF's real warm-brown product
   photography while preserving the original cut-out and alpha fade. */
.holding-glass .divider__layer img {
  filter: sepia(0.58) saturate(1.38) hue-rotate(342deg) brightness(0.82) contrast(1.06);
}

.asset-network__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(32px, 7vw, 112px);
  margin-bottom: clamp(42px, 5vw, 72px);
}

.asset-network__head h2 {
  margin: 0;
}

.asset-network__intro {
  max-width: 48ch;
  margin: 0 0 8px;
  color: rgba(245, 241, 232, 0.72);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.asset-card {
  display: grid;
  grid-template-rows: clamp(220px, 20vw, 300px) 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 28px;
  background: rgba(4, 19, 6, 0.68);
  box-shadow: 0 30px 72px -42px rgba(0, 0, 0, 0.95);
}

.asset-card__media {
  display: block;
  min-height: 0;
  overflow: hidden;
}

.asset-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2, .7, .2, 1);
}

.asset-card:hover .asset-card__media img {
  transform: scale(1.025);
}

.asset-card--phosphate .asset-card__media img { object-position: 56% 48%; }
.asset-card--mount-isa .asset-card__media img { object-position: 54% 52%; }
.asset-card--townsville .asset-card__media img { object-position: 50% 48%; }

.asset-card__body {
  position: relative;
  z-index: 1;
  min-height: 230px;
  margin-top: -24px;
  padding: clamp(25px, 2.4vw, 34px);
  border: 1px solid rgba(245, 241, 232, 0.26);
  border-radius: 24px 24px 0 0;
  background: linear-gradient(145deg, rgba(22, 25, 19, 0.9), rgba(7, 19, 8, 0.78));
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  backdrop-filter: blur(22px) saturate(1.08);
  box-shadow: inset 0 1px 0 rgba(245, 241, 232, 0.1);
}

.asset-card__role {
  margin: 0 0 13px;
  color: #d9a17a;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.asset-card h3 {
  margin: 0 0 14px;
  color: var(--bone);
  font-size: clamp(25px, 2vw, 31px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.asset-card__body > p:last-child {
  margin: 0;
  color: rgba(245, 241, 232, 0.78);
  font-size: 15px;
  line-height: 1.58;
}

/* Reuse the former Search control as the holding page's Contact action. */
@media (min-width: 1240px) {
  .holding-glass.content-2.home--pillnav.is-compact .primary-nav__aside a.search-pill {
    color: var(--green);
    border-color: rgba(245, 241, 232, 0.9);
    background: rgba(245, 241, 232, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }

  .holding-glass.content-2.home--pillnav.is-compact .primary-nav__aside a.search-pill:hover {
    color: var(--green-deep);
    border-color: var(--bone);
    background: var(--bone);
  }
}

/* The map now completes the asset story instead of repeating it later. Cards
   explain what each site does; the map explains where they are and how they
   connect. Both studies are borderless and run to the viewport edges. */
.asset-map {
  width: 100%;
  margin-inline: 0;
  margin-top: clamp(20px, 2.4vw, 34px);
  padding: clamp(54px, 6vw, 88px) 0 clamp(24px, 3vw, 44px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home--map-bone .asset-map.band--map {
  padding-top: clamp(54px, 6vw, 88px);
  border-top: 0;
}

.asset-map .shell {
  max-width: none;
  padding-inline: 0;
}

.asset-map .locations__head {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(30px, 4vw, 64px);
}

.asset-map .lead-dark {
  max-width: 48ch;
  font-size: clamp(16px, 1.35vw, 19px);
}

.asset-map .locations__map {
  width: min(1240px, 100%);
  margin: clamp(10px, 1vw, 18px) auto 0;
}

/* Option 1 — one continuous dark field. The light-ground map palette is
   reversed so the continent, route and labels retain their hierarchy. */
.home--map-bone.map-treatment-dark .asset-map.band--map {
  background: transparent;
  color: var(--bone);
}

.home--map-bone.map-treatment-dark .asset-map h2,
.home--map-bone.map-treatment-dark .asset-map .lead-dark {
  color: var(--bone);
}

.home--map-bone.map-treatment-dark .asset-map .tint {
  color: #a9cda9;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.map-treatment-dark .asset-map .map__rest {
  fill: rgba(245, 241, 232, 0.1);
  stroke: rgba(245, 241, 232, 0.2);
}

.map-treatment-dark .asset-map .map__qld { stroke: rgba(245, 241, 232, 0.32); }
.map-treatment-dark .asset-map .map__qld-glow { fill: #3e8a3e; }
.map-treatment-dark .asset-map .map__route { stroke: rgba(245, 241, 232, 0.82); }
.map-treatment-dark .asset-map .map__halo { fill: var(--bone); opacity: 0.45; }
.map-treatment-dark .asset-map .map__dot { fill: var(--bone); stroke: var(--green); }
.map-treatment-dark .asset-map .map__label rect { fill: #0c310c; stroke: rgba(143, 203, 143, 0.52); }
.map-treatment-dark .asset-map .map__title { fill: var(--bone); }
.map-treatment-dark .asset-map .map__sub { fill: #a9cda9; }
.map-treatment-dark .asset-map .locations__legend li { border-color: rgba(245, 241, 232, 0.18); color: rgba(245, 241, 232, 0.66); }
.map-treatment-dark .asset-map .locations__legend span { color: var(--bone); }

/* Option 2 — a clean cut from the hero photograph to the bone asset story.
   Cards retain their dark glass treatment for contrast; the section copy and
   map use the light-ground palette. */
.map-treatment-fade .hero-e::after {
  display: none;
}

.home--ink.home--deep.map-treatment-fade .run > .asset-network {
  padding-bottom: 0 !important;
  color: var(--green-deep);
  background: var(--bone);
}

.map-treatment-fade .asset-network__head h2,
.map-treatment-fade .asset-network__intro {
  color: var(--green-deep);
}

/* In the chosen B + bone study, use the same smoke-glass material as the
   About panel below it. Keep the card-specific geometry, but share the exact
   transparency, blur, border highlight and depth treatment. */
.glass-theme-smoke.map-treatment-fade.assets-layout-anchor .asset-card__body {
  border-color: var(--unified-glass-border);
  background: var(--unified-glass-background);
  -webkit-backdrop-filter: blur(26px) saturate(1.18) brightness(var(--unified-glass-brightness));
  backdrop-filter: blur(26px) saturate(1.18) brightness(var(--unified-glass-brightness));
  box-shadow: var(--unified-glass-shadow), inset 0 1px 0 var(--unified-glass-highlight);
}

.map-treatment-fade .asset-network__head .tint {
  color: #3d7f35;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.map-treatment-fade .asset-network__head .eyebrow {
  color: #955d38;
}

.map-treatment-fade.assets-layout-anchor .asset-card {
  border: 0;
  box-shadow: 0 30px 72px -42px rgba(8, 33, 8, 0.42);
}

.home--map-bone.map-treatment-fade .asset-map.band--map {
  margin-bottom: 0;
  padding-top: clamp(70px, 7vw, 104px);
  padding-bottom: clamp(180px, 20vh, 240px);
  background: var(--bone);
}

.rail-feature {
  position: relative;
  min-height: clamp(290px, 26vw, 360px);
  margin-top: clamp(18px, 2vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 28px;
  box-shadow: 0 34px 82px -44px rgba(0, 0, 0, 0.98);
}

.rail-feature__media,
.rail-feature__shade {
  position: absolute;
  inset: 0;
}

.rail-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.rail-feature__shade {
  background:
    linear-gradient(90deg, rgba(3, 16, 5, 0.94) 0%, rgba(3, 16, 5, 0.79) 48%, rgba(3, 16, 5, 0.28) 100%),
    linear-gradient(0deg, rgba(3, 16, 5, 0.5), transparent 62%);
}

.rail-feature__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: end;
  gap: clamp(40px, 7vw, 104px);
  min-height: inherit;
  padding: clamp(30px, 4vw, 54px);
}

.rail-feature__copy {
  max-width: 650px;
}

.rail-feature__copy h3 {
  max-width: 17ch;
  margin: 9px 0 14px;
  color: var(--bone);
  font-size: clamp(29px, 3vw, 45px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.rail-feature__copy > p:last-child {
  max-width: 60ch;
  margin: 0;
  color: rgba(245, 241, 232, 0.78);
  font-size: 15px;
  line-height: 1.58;
}

.rail-route-shell {
  position: relative;
  margin-bottom: 14px;
  padding-top: 29px;
}

.rail-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  color: var(--bone);
  list-style: none;
}

.rail-route__track {
  position: absolute;
  top: 7px;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: rgba(245, 241, 232, 0.54);
}

.rail-route li {
  position: relative;
  text-align: center;
}

.rail-route li::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bone);
  border-radius: 50%;
  background: #8dbd82;
  transform: translateX(-50%);
  box-shadow: 0 0 0 6px rgba(141, 189, 130, 0.16);
}

.rail-route__name {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rail-route__role {
  display: block;
  margin-top: 6px;
  color: rgba(245, 241, 232, 0.6);
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .asset-network__head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .asset-card {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: minmax(260px, auto);
  }

  .asset-card__body {
    min-height: 0;
    margin: 0 0 0 -20px;
    border-radius: 24px 0 0 24px;
  }

  .asset-map .locations__head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rail-feature__content {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .rail-route {
    max-width: 620px;
  }

  .rail-route-shell {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .asset-network { padding-block: 76px 88px; }

  .home--sweep .asset-network:has(+ .divider) {
    padding-bottom: clamp(240px, 30vh, 340px);
  }

  .asset-card {
    grid-template-columns: 1fr;
    grid-template-rows: 230px 1fr;
  }

  .asset-card__body {
    min-height: 0;
    margin: -20px 0 0;
    border-radius: 22px 22px 0 0;
  }

  .asset-map {
    margin-top: 16px;
    padding: 44px 0 28px;
  }

  .home--map-bone .asset-map.band--map { padding-top: 44px; }

  .home--map-bone.map-treatment-fade .asset-map.band--map {
    padding-top: 52px;
    padding-bottom: 210px;
    background: var(--bone);
  }

  .asset-map .locations__map {
    margin-top: 18px;
  }

  .rail-feature {
    min-height: 540px;
  }

  .rail-feature__shade {
    background: linear-gradient(0deg, rgba(3, 16, 5, 0.96) 0%, rgba(3, 16, 5, 0.73) 62%, rgba(3, 16, 5, 0.28) 100%);
  }

  .rail-feature__content {
    align-content: end;
    padding: 28px 24px 34px;
  }

  .rail-route__name { font-size: 9px; }
  .rail-route__role { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .asset-card__media img { transition: none; }
}
