/* DMC process case study */

:root {
  color-scheme: dark;
}

body {
  min-height: 100svh;
  background: var(--c-bg-deep);
}

.dmc-study {
  overflow-x: clip;
}

/* Hero */

.dmc-hero {
  position: relative;
  display: grid;
  height: 100svh;
  min-height: 46rem;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  overflow: clip;
  padding-block: 1.35rem 1.5rem;
  background:
    radial-gradient(circle at 76% 42%, rgba(0, 166, 214, 0.17), transparent 31rem),
    linear-gradient(180deg, rgba(31, 37, 46, 0.97), rgba(23, 28, 35, 0.99));
  border-bottom: 1px solid rgba(217, 240, 246, 0.08);
  isolation: isolate;
}

.dmc-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(217, 240, 246, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 240, 246, 0.025) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(circle at 72% 44%, black, transparent 75%);
}

.dmc-hero::after {
  position: absolute;
  right: -11rem;
  bottom: -19rem;
  z-index: -1;
  width: 42rem;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(110, 187, 213, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(0, 166, 214, 0.025),
    0 0 0 10rem rgba(0, 166, 214, 0.018);
}

.dmc-hero__top,
.dmc-hero__grid,
.dmc-hero__facts,
.dmc-section .site,
.dmc-outcome .site {
  width: min(94vw, 92rem);
  max-width: none;
}

.dmc-hero__top {
  display: flex;
  justify-content: flex-end;
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.dmc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(34rem, 1.12fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.dmc-hero__copy {
  display: grid;
  gap: var(--sp-5);
}

.dmc-hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 6.5vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.dmc-hero__copy .lead {
  max-width: 42rem;
}

.dmc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.dmc-tags li {
  padding: 0.45rem 0.7rem;
  color: var(--c-text-soft);
  font-size: var(--fs-100);
  border: 1px solid rgba(217, 240, 246, 0.13);
  border-radius: 999px;
  background: rgba(31, 37, 46, 0.54);
}

.dmc-route {
  position: relative;
  display: grid;
  min-height: 32rem;
  grid-template-columns: 9rem minmax(0, 1fr) 10rem;
  gap: 1rem;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
  border: 1px solid rgba(110, 187, 213, 0.2);
  border-radius: var(--r-xl);
  background:
    linear-gradient(145deg, rgba(0, 166, 214, 0.09), transparent 48%),
    rgba(22, 30, 38, 0.74);
  box-shadow: var(--sh-md);
}

.dmc-route::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(110, 187, 213, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 187, 213, 0.04) 1px, transparent 1px);
  background-size: 2.4rem 2.4rem;
}

.dmc-route__feed,
.dmc-route__product {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem;
  border: 1px solid rgba(110, 187, 213, 0.2);
  border-radius: var(--r-lg);
  background: rgba(31, 37, 46, 0.86);
}

.dmc-route__feed span,
.dmc-route__product span,
.dmc-route__node span {
  color: var(--c-main-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.dmc-route__feed strong,
.dmc-route__product strong {
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: 1rem;
}

.dmc-route__feed small,
.dmc-route__product small,
.dmc-route__node small {
  color: var(--c-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.dmc-route__line {
  position: absolute;
  top: 50%;
  right: 7rem;
  left: 7rem;
  z-index: 0;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(0, 166, 214, 0.18) 8%, rgba(110, 187, 213, 0.78) 50%, rgba(0, 166, 214, 0.18) 92%, transparent);
}

.dmc-route__line::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4.5rem;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--c-main-2), transparent);
  box-shadow: 0 0 0.9rem rgba(0, 166, 214, 0.55);
  animation: dmc-route-pulse 4.8s linear infinite;
  transform: translateY(-50%);
}

.dmc-route__network {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "clean clean"
    "smr rwgs"
    "meoh meoh"
    "dmc dmc";
  gap: 0.75rem;
}

.dmc-route__node {
  display: grid;
  min-height: 5.2rem;
  gap: 0.25rem;
  align-content: center;
  padding: 0.8rem;
  border: 1px solid rgba(110, 187, 213, 0.18);
  border-radius: var(--r-lg);
  background: rgba(19, 27, 35, 0.88);
  box-shadow: inset 0 0 1.7rem rgba(0, 166, 214, 0.025);
}

.dmc-route__node strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.dmc-route__node--clean { grid-area: clean; }
.dmc-route__node--smr { grid-area: smr; }
.dmc-route__node--rwgs { grid-area: rwgs; }
.dmc-route__node--meoh { grid-area: meoh; }
.dmc-route__node--dmc { grid-area: dmc; }

.dmc-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(217, 240, 246, 0.1);
  border-radius: var(--r-xl);
  background: rgba(31, 37, 46, 0.62);
}

.dmc-hero__facts article {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.2rem;
}

.dmc-hero__facts article + article {
  border-left: 1px solid rgba(217, 240, 246, 0.09);
}

.dmc-hero__facts span,
.dmc-spec-grid span,
.dmc-energy span,
.dmc-economics__grid span {
  color: var(--c-main-2);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.dmc-hero__facts strong {
  color: var(--c-text-soft);
  font-size: var(--fs-200);
}

/* Sections */

.dmc-section,
.dmc-outcome {
  position: relative;
  padding-block: clamp(6rem, 10vw, 10rem);
  overflow: clip;
  border-bottom: 1px solid rgba(217, 240, 246, 0.07);
}

.dmc-section--surface,
.dmc-outcome {
  background:
    radial-gradient(circle at 78% 46%, rgba(0, 166, 214, 0.07), transparent 29rem),
    rgba(31, 37, 46, 0.38);
}

.dmc-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.dmc-section__head > div {
  display: grid;
  gap: var(--sp-4);
}

.dmc-section__head h2,
.dmc-feature h2,
.dmc-separation h2,
.dmc-economics h2,
.dmc-outcome h2 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
  text-wrap: balance;
}

.dmc-section__head > p {
  max-width: 42rem;
  justify-self: end;
}

.dmc-media {
  overflow: hidden;
  border: 1px solid rgba(217, 240, 246, 0.13);
  border-radius: var(--r-xl);
  background: rgba(31, 37, 46, 0.72);
}

.dmc-media img {
  display: block;
  width: 100%;
  background: #fff;
}

.dmc-media figcaption,
.dmc-pfd > span {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--c-muted);
  font-size: var(--fs-100);
  border-top: 1px solid rgba(217, 240, 246, 0.09);
}

.dmc-media--block {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.dmc-architecture,
.dmc-spec-grid,
.dmc-energy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(217, 240, 246, 0.12);
  border-radius: var(--r-xl);
  background: rgba(31, 37, 46, 0.54);
}

.dmc-architecture article,
.dmc-spec-grid article,
.dmc-energy article {
  display: grid;
  min-height: 13rem;
  gap: var(--sp-3);
  align-content: start;
  padding: clamp(1.25rem, 2.6vw, 2rem);
}

.dmc-architecture article + article,
.dmc-spec-grid article + article,
.dmc-energy article + article {
  border-left: 1px solid rgba(217, 240, 246, 0.09);
}

.dmc-architecture article > span,
.dmc-separation-route article > span {
  color: var(--c-main-2);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: var(--fw-bold);
}

.dmc-architecture h3,
.dmc-methanol h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.dmc-architecture p,
.dmc-spec-grid p,
.dmc-energy p,
.dmc-separation-route p {
  color: var(--c-muted);
}

.dmc-feature {
  display: grid;
  grid-template-columns: minmax(20rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.dmc-feature__copy,
.dmc-separation__copy,
.dmc-economics__copy,
.dmc-outcome__copy {
  display: grid;
  gap: var(--sp-5);
}

.dmc-pfd {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 240, 246, 0.13);
  border-radius: var(--r-xl);
  background: rgba(31, 37, 46, 0.72);
}

.dmc-pfd__canvas {
  overflow-x: auto;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 166, 214, 0.6) rgba(31, 37, 46, 0.1);
}

.dmc-pfd__canvas img {
  display: block;
  width: 100%;
  min-width: 62rem;
}

.dmc-spec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dmc-spec-grid strong,
.dmc-energy strong,
.dmc-economics__grid strong {
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.dmc-reactants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.dmc-reactant,
.dmc-methanol {
  overflow: hidden;
  border: 1px solid rgba(217, 240, 246, 0.12);
  border-radius: var(--r-xl);
  background: rgba(31, 37, 46, 0.6);
}

.dmc-reactant {
  display: grid;
  gap: var(--sp-4);
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
}

.dmc-reactant__head {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
}

.dmc-reactant__head span {
  color: var(--c-main-2);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.dmc-reactant__head strong {
  color: var(--c-text);
  font-family: var(--font-display);
  text-align: right;
}

.dmc-reactant__plots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.dmc-reactant__plots img {
  width: 100%;
  min-height: 12rem;
  object-fit: contain;
  background: #fff;
  border-radius: var(--r-md);
}

.dmc-methanol {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.dmc-methanol__copy {
  display: grid;
  gap: var(--sp-4);
}

.dmc-methanol__copy > strong {
  color: var(--c-main-soft);
}

.dmc-methanol figure {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
}

.dmc-methanol img {
  display: block;
  width: 100%;
}

.dmc-separation {
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.dmc-media--curve {
  max-width: 40rem;
  justify-self: end;
}

.dmc-separation-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid rgba(217, 240, 246, 0.12);
  border-radius: var(--r-xl);
  background: rgba(31, 37, 46, 0.54);
}

.dmc-separation-route article {
  display: grid;
  min-height: 12rem;
  gap: var(--sp-3);
  align-content: start;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.dmc-separation-route article + article {
  border-left: 1px solid rgba(217, 240, 246, 0.09);
}

.dmc-separation-route strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.dmc-energy {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dmc-economics {
  display: grid;
  grid-template-columns: minmax(20rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.dmc-economics__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(217, 240, 246, 0.12);
  border-radius: var(--r-xl);
  background: rgba(31, 37, 46, 0.54);
}

.dmc-economics__grid article {
  display: grid;
  min-height: 10rem;
  gap: 0.5rem;
  align-content: center;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.dmc-economics__grid article:nth-child(even) {
  border-left: 1px solid rgba(217, 240, 246, 0.09);
}

.dmc-economics__grid article:nth-child(n + 3) {
  border-top: 1px solid rgba(217, 240, 246, 0.09);
}

.dmc-economics__grid small {
  color: var(--c-muted);
}

.dmc-outcome {
  min-height: 82svh;
  display: grid;
  align-content: center;
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.dmc-outcome__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(22rem, 1.14fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.dmc-outcome .page-top {
  margin-top: clamp(4rem, 8vw, 7rem);
}

/* Tablet */

@media (max-width: 68rem) {
  .dmc-hero {
    height: auto;
    min-height: 100svh;
  }

  .dmc-hero__grid,
  .dmc-feature,
  .dmc-separation,
  .dmc-economics,
  .dmc-outcome__grid {
    grid-template-columns: 1fr;
  }

  .dmc-hero__grid {
    padding-block: 2rem;
  }

  .dmc-hero h1,
  .dmc-section__head h2,
  .dmc-feature h2,
  .dmc-separation h2,
  .dmc-economics h2,
  .dmc-outcome h2 {
    max-width: 13ch;
  }

  .dmc-route {
    width: min(100%, 48rem);
    justify-self: center;
  }

  .dmc-section__head {
    grid-template-columns: 1fr;
  }

  .dmc-section__head > p {
    justify-self: start;
  }

  .dmc-media--curve {
    justify-self: start;
  }
}

/* Mobile */

@media (max-width: 48rem) {
  .dmc-hero {
    height: 100svh;
    min-height: 0;
    padding-block: 0.8rem 1rem;
  }

  .dmc-hero__top {
    font-size: 0.56rem;
  }

  .dmc-hero__grid {
    gap: 1.1rem;
    align-content: start;
    padding-block: 1rem;
  }

  .dmc-hero__copy {
    gap: 0.7rem;
  }

  .dmc-hero h1 {
    max-width: none;
    font-size: clamp(2.15rem, 10.4vw, 3.35rem);
    line-height: 0.97;
  }

  .dmc-hero__copy .lead {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .dmc-tags {
    gap: 0.35rem;
  }

  .dmc-tags li {
    padding: 0.3rem 0.48rem;
    font-size: 0.6rem;
  }

  .dmc-route {
    min-height: 19rem;
    grid-template-columns: 5.4rem minmax(0, 1fr) 6rem;
    gap: 0.45rem;
    padding: 0.55rem;
    border-radius: var(--r-lg);
  }

  .dmc-route__feed,
  .dmc-route__product,
  .dmc-route__node {
    padding: 0.48rem;
    border-radius: 0.7rem;
  }

  .dmc-route__feed strong,
  .dmc-route__product strong {
    font-size: 0.72rem;
  }

  .dmc-route__feed small,
  .dmc-route__product small,
  .dmc-route__node small {
    font-size: 0.48rem;
  }

  .dmc-route__feed span,
  .dmc-route__product span,
  .dmc-route__node span {
    font-size: 0.45rem;
  }

  .dmc-route__node {
    min-height: 3.15rem;
  }

  .dmc-route__node strong {
    font-size: 0.62rem;
  }

  .dmc-route__network {
    gap: 0.35rem;
  }

  .dmc-hero__facts {
    border-radius: var(--r-lg);
  }

  .dmc-hero__facts article {
    gap: 0.18rem;
    padding: 0.5rem 0.4rem;
  }

  .dmc-hero__facts span {
    font-size: 0.43rem;
  }

  .dmc-hero__facts strong {
    font-size: 0.56rem;
    line-height: 1.2;
  }

  .dmc-section,
  .dmc-outcome {
    padding-block: clamp(4.5rem, 14vw, 6.5rem);
  }

  .dmc-section__head h2,
  .dmc-feature h2,
  .dmc-separation h2,
  .dmc-economics h2,
  .dmc-outcome h2 {
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .dmc-architecture,
  .dmc-spec-grid,
  .dmc-energy,
  .dmc-separation-route,
  .dmc-reactants,
  .dmc-methanol,
  .dmc-economics__grid {
    grid-template-columns: 1fr;
  }

  .dmc-architecture article,
  .dmc-spec-grid article,
  .dmc-energy article,
  .dmc-separation-route article {
    min-height: 9.5rem;
  }

  .dmc-architecture article + article,
  .dmc-spec-grid article + article,
  .dmc-energy article + article,
  .dmc-separation-route article + article {
    border-top: 1px solid rgba(217, 240, 246, 0.09);
    border-left: 0;
  }

  .dmc-pfd__canvas img {
    min-width: 64rem;
  }

  .dmc-reactant__head {
    display: grid;
  }

  .dmc-reactant__head strong {
    text-align: left;
  }

  .dmc-reactant__plots {
    grid-template-columns: 1fr;
  }

  .dmc-reactant__plots img {
    min-height: 0;
  }

  .dmc-methanol {
    gap: 1.25rem;
  }

  .dmc-media--curve {
    max-width: 100%;
  }

  .dmc-economics__grid article:nth-child(even) {
    border-left: 0;
  }

  .dmc-economics__grid article + article {
    border-top: 1px solid rgba(217, 240, 246, 0.09);
  }

  .dmc-outcome {
    min-height: 76svh;
  }
}

@keyframes dmc-route-pulse {
  from {
    left: 4%;
  }

  to {
    left: calc(96% - 4.5rem);
  }
}
