.hx-why {
  --hxw-ground: var(--c-paper);
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.hx-why-hook {
  min-height: 100svh;
}

.hx-why-hook-inner {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding-block: clamp(3rem, 8vh, 6rem);
}

.hx-why-blobs {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: min(96vw, 58rem);
  aspect-ratio: 1.08;
  pointer-events: none;
}

.hx-why-blobs svg { width: 100%; height: 100%; display: block; overflow: visible; }

.hxw-body,
.hxw-lobe,
.hxw-sat {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.hxw-body { animation: hxw-body 9s ease-in-out infinite alternate; }
@keyframes hxw-body {
  to { scale: 1.07 0.93; }
}

.hxw-lobe { animation: 17s ease-in-out infinite alternate; }
.hxw-lobe.l1 { animation-name: hxw-l1; animation-duration: 17s; animation-delay: -4s; }
.hxw-lobe.l2 { animation-name: hxw-l2; animation-duration: 21s; animation-delay: -11s; }
.hxw-lobe.l3 { animation-name: hxw-l3; animation-duration: 15s; animation-delay: -7s; }

@keyframes hxw-l1 {
  0%   { translate: 0 0;      scale: 1; }
  100% { translate: -34% 26%; scale: 1.14; }
}
@keyframes hxw-l2 {
  0%   { translate: 0 0;      scale: 1.1; }
  100% { translate: 30% -22%; scale: 0.9; }
}
@keyframes hxw-l3 {
  0%   { translate: 0 0;      scale: 0.92; }
  100% { translate: 18% 30%;  scale: 1.16; }
}

.hxw-sat { animation: 13s ease-in infinite; }

.hxw-sat.out-a { animation-name: hxw-out-a; animation-duration: 13s;   animation-delay: -2.2s; }
.hxw-sat.in-b  { animation-name: hxw-in-b;  animation-duration: 10.5s; animation-delay: -6.4s; }
.hxw-sat.out-c { animation-name: hxw-out-c; animation-duration: 16s;   animation-delay: -9.1s; }
.hxw-sat.in-d  { animation-name: hxw-in-d;  animation-duration: 12s;   animation-delay: -3.7s; }
.hxw-sat.out-e { animation-name: hxw-out-e; animation-duration: 9s;    animation-delay: -5.5s; }
.hxw-sat.in-f  { animation-name: hxw-in-f;  animation-duration: 14.5s; animation-delay: -11.3s; }

@keyframes hxw-out-a {
  0%   { translate: 0 0;          scale: 1; }
  100% { translate: -262% -172%;  scale: 0.5; }
}
@keyframes hxw-out-c {
  0%   { translate: 0 0;          scale: 1; }
  100% { translate: 352% 246%;    scale: 0.46; }
}
@keyframes hxw-out-e {
  0%   { translate: 0 0;          scale: 1; }
  100% { translate: -412% 384%;   scale: 0.42; }
}

@keyframes hxw-in-b {
  0%   { translate: 338% -58%;    scale: 0.52; }
  100% { translate: 0 0;          scale: 1; }
}
@keyframes hxw-in-d {
  0%   { translate: 268% -236%;   scale: 0.48; }
  100% { translate: 0 0;          scale: 1; }
}
@keyframes hxw-in-f {
  0%   { translate: -96% 392%;    scale: 0.5; }
  100% { translate: 0 0;          scale: 1; }
}

.hx-why-hook-inner > :not(.hx-why-blobs) { position: relative; z-index: 1; }

.hx-why-q > span,
.hx-why-sub > span { display: block; }

/* The project's name in the question, lit because it could not be read.

   The colony behind the line brightens from left to right, so the word's
   contrast falls across its own width. Sampled off the rendered page, column
   by column: the gradient as first written ran 4.06:1 down to 1.54:1, median
   2.13:1, with 80% of the word under the 3:1 WCAG asks of text this size.
   Brightening the fill gives 6.36:1 down to 2.30:1, median 3.23:1, with 43%
   under.

   Better, not solved -- the right-hand end still falls short. The remedy for
   that is the ground rather than the word: a rim and a glow were both tried
   and taken out, because light around a light word on a light ground is less
   separation, not more. */
.hx-why-q .hx-why-capture {
  display: inline;
  background: linear-gradient(90deg, #c8ff74, #5bffd2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hx-why-q {
  font-family: "Changa", sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 5.8vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #f2fff8;
  text-wrap: balance;
  max-width: min(100%, 30ch);
  margin: 0 auto 1.4rem;
  text-wrap: balance;
}

.hx-why-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  line-height: 1.55;
  color: rgba(234, 255, 242, 0.92);
  max-width: 46ch;
  margin: 0 auto;
}

.hx-why-weave {
  position: relative;
  --rx-chap: 0%;
  padding-top: clamp(9rem, 32vh, 20rem);
}

.hx-why-thread {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  clip-path: inset(0 0 calc(100% - var(--rx-chap)) 0);
  --thread-mask: linear-gradient(to bottom,
    transparent 0,       #000 4%,
    #000 8.7%,           transparent 11.7%,
    transparent 25.5%,   #000 28%,
    #000 32.4%,          transparent 35.4%,
    transparent 49.2%,   #000 51.7%,
    #000 56.1%,          transparent 59.1%,
    transparent 72.9%,   #000 75.4%,
    #000 78%,            transparent 81%,
    transparent 100%);
  -webkit-mask-image: var(--thread-mask);
  mask-image: var(--thread-mask);
}

.hx-why-thread svg { width: 100%; height: 100%; display: block; }

.hx-why-thread path {
  fill: none;
  stroke: var(--c-glow);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 9px rgba(160, 232, 96, 0.45));
}

.hx-why-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(5rem, 12vh, 10rem);
}

.hx-why-list > li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  min-height: 78svh;
  align-content: center;
}

.hx-why-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  min-height: 0;
  align-self: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(var(--hxw-ground), var(--hxw-ground)),
    linear-gradient(145deg,
      rgba(160, 232, 96, 0.14) 0%,
      rgba(160, 232, 96, 0.05) 45%,
      rgba(20, 179, 145, 0.10) 100%);
  border: 2px solid rgba(160, 232, 96, 0.5);
  box-shadow:
    0 0 28px rgba(160, 232, 96, 0.20),
    inset 0 0 26px rgba(160, 232, 96, 0.10);
  animation:
    hxw-float 5.5s ease-in-out infinite,
    hxw-glow  4.5s ease-in-out infinite;
  animation-delay: calc(var(--rx-d, 0) * 1ms);
}

@keyframes hxw-float {
  50% { translate: 0 -6px; }
}

.hx-why-art.is-bare {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  animation: hxw-float-far 6s ease-in-out infinite;
  animation-delay: calc(var(--rx-d, 0) * 1ms);
}

@keyframes hxw-float-far {
  50% { translate: 0 -22px; }
}

.hx-why-art.is-bare .hx-why-icon {
  width: 175%;
  margin-inline: -37.5%;
  filter:
    drop-shadow(0 0 16px rgba(160, 232, 96, 0.5))
    drop-shadow(0 0 48px rgba(160, 232, 96, 0.26));
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hx-why-list > li:nth-child(1) .hx-why-icon {
  transform: translateX(9%) scale(1.34);
}

.hx-why-list > li:nth-child(2) .hx-why-icon { transform: translateX(7%) scale(0.86); }
.hx-why-list > li:nth-child(3) .hx-why-icon { transform: translateX(-7%) scale(0.86); }
.hx-why-list > li:nth-child(4) .hx-why-icon { transform: translateX(6%) scale(1.15); }

@keyframes hxw-glow {
  0%, 100% {
    border-color: rgba(160, 232, 96, 0.40);
    box-shadow: 0 0 20px rgba(160, 232, 96, 0.14), inset 0 0 20px rgba(160, 232, 96, 0.08);
  }
  50% {
    border-color: rgba(184, 245, 126, 0.80);
    box-shadow: 0 0 40px rgba(160, 232, 96, 0.34), inset 0 0 30px rgba(160, 232, 96, 0.16);
  }
}

.hx-why-icon { display: block; }

img.hx-why-icon {
  width: 100%;
  height: auto;
  display: block;
}

.hx-why-text { align-self: center; }

.hx-why-name {
  font-family: "Changa", sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--c-glow);
  margin: 0 0 0.1rem;
}

.hx-why-tag {
  font-family: "Changa", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin: 0 0 0.9rem;
}

.hx-why-note {
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.75;
  color: var(--c-text-2);
  margin: 0;
}

.hx-why-copy {
  position: relative;
  z-index: 1;
  max-width: 54ch;
  margin: clamp(2.5rem, 7vw, 4.5rem) auto 0;
  text-align: center;
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--c-text-2);
}

.hx-why-copy strong { color: #f2fff8; font-weight: 700; }

@media (max-width: 767.98px) {
  .hx-why-thread { display: none; }
  .hx-why-list > li {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    min-height: 0;
  }

  .hx-why-list > li .hx-why-art.is-bare .hx-why-icon {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    transform: none;
  }

  /* The inner box stops being the blobs' containing block here, so the hook
     has to be it instead. Without this they fall back to the section, which
     is the whole of Why: centred on that, they sat several screens down, over
     the drawings in the list. */
  .hx-why-hook { position: relative; min-height: 0; }
  .hx-why-hook-inner { position: static; min-height: 92svh; }
  .hx-why-blobs { width: min(100%, 30rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hxw-body,
  .hxw-lobe,
  .hxw-sat,
  .hx-hais-bg,
  .hx-why-art { animation: none; }
  .hx-why-thread { clip-path: none; }
}

@media print {
  .hx-why-blobs, .hx-why-thread { display: none !important; }
  .hx-why-q, .hx-why-name { color: #075a3e !important; }
  .hx-why-q .hx-why-capture { background: none; color: #075a3e; }
  .hx-why-list > li { grid-template-columns: 1fr; }
}

.hx-why-list > li:nth-child(odd)  .hx-why-art { order: 0; }
.hx-why-list > li:nth-child(even) .hx-why-art { order: 2; }

html.rx-js .hx-why-list > li:nth-child(odd)  .hx-why-text[data-reveal] { transform: translateX(-52px); }
html.rx-js .hx-why-list > li:nth-child(even) .hx-why-text[data-reveal] { transform: translateX(52px); }
html.rx-js .hx-why-list > li .hx-why-text[data-reveal].rx-in { transform: none; }

@media (max-width: 767.98px) {
  html.rx-js .hx-why-list > li .hx-why-text[data-reveal],
  html.rx-js .hx-why-list > li:nth-child(odd) .hx-why-text[data-reveal],
  html.rx-js .hx-why-list > li:nth-child(even) .hx-why-text[data-reveal] { transform: translateY(26px); }
  html.rx-js .hx-why-list > li .hx-why-text[data-reveal].rx-in,
  html.rx-js .hx-why-list > li:nth-child(odd) .hx-why-text[data-reveal].rx-in,
  html.rx-js .hx-why-list > li:nth-child(even) .hx-why-text[data-reveal].rx-in { transform: none; }
  .hx-why-list > li:nth-child(even) .hx-why-art { order: 0; }
}

.hx-hais {
  margin-inline: calc(50% - 50vw);
  min-height: 0;
  margin-block: clamp(3rem, 9vh, 7rem) 0;
}

.hx-hais-stage {
  min-height: 100svh;
  overflow: hidden;
  --hais-pad: clamp(1.25rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
  column-gap: clamp(1rem, 2vw, 2rem);
  align-content: center;
  align-items: end;
  padding-inline: var(--hais-pad);
}

.hx-hais-bg {
  position: relative;
  z-index: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  width: min(70vw, 66rem);
  margin-right: calc(-1 * var(--hais-pad));
  aspect-ratio: 1376 / 768;
  background-image: url("https://static.igem.wiki/teams/6379/wiki/homepage-icon/hais-without-bg.avif");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  translate: 0 9%;
  animation: hais-float 7.5s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 84%, transparent 100%);
}

@keyframes hais-float {
  50% { transform: translateY(-15px); }
}

.hx-hais-panel {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border-radius: 22px;
  background: rgba(8, 26, 32, 0.55);
  border: 1px solid rgba(160, 232, 96, 0.22);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hx-hais-panel { background: rgba(8, 26, 32, 0.9); }
}

.hx-hais-title {
  font-family: "Changa", sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 2.9vw, 2.3rem);
  line-height: 1.18;
  color: #f2fff8;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

.hx-hais-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: rgba(226, 255, 240, 0.86);
  margin: 0 0 clamp(1.5rem, 3.5vh, 2.5rem);
  max-width: 54ch;
}

.hx-hais-stats {
  display: grid;
  gap: clamp(0.85rem, 2vh, 1.35rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-hais-stats li {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  column-gap: 0.85rem;
  align-items: baseline;
}
.hx-hais-note { grid-column: 1 / -1; }

.hx-hais-stats li {
  border-left: 3px solid var(--c-amber);
  padding-left: 0.85rem;
}

.hx-hais-label {
  font-family: "Changa", sans-serif;
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin: 0;
  white-space: nowrap;
}

.hx-hais-figure {
  font-family: "Changa", sans-serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  color: #b8f57e;
  margin: 0;
  white-space: nowrap;
}

.hx-hais-note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(226, 255, 240, 0.74);
  margin: 0.15rem 0 0;
}

@media (max-width: 767.98px) {
  .hx-hais-stage {
    min-height: 0;
    padding-block: clamp(3rem, 10vh, 5rem);
    gap: clamp(1.25rem, 4vw, 2rem);
  }
  .hx-hais-stage { grid-template-columns: 1fr; }
  .hx-hais-panel { grid-column: 1; grid-row: 2; }
  .hx-hais-bg { grid-column: 1; grid-row: 1; justify-self: stretch; }
  .hx-hais-bg {
    width: 100%;
    margin-right: 0;
    translate: none;
    order: -1;
  }
  .hx-hais-panel { width: 100%; }
  .hx-hais-stats li { grid-template-columns: 1fr; }
  .hx-hais-figure { white-space: normal; }
}

@media print {
  .hx-hais { min-height: 0; margin-inline: 0; }
  .hx-hais-stage { position: static; height: auto; }
  .hx-hais-bg { display: none !important; }
  .hx-hais-panel { background: none; border-color: #999; backdrop-filter: none; }
  .hx-hais-title, .hx-hais-lead, .hx-hais-note { color: #000 !important; }
  .hx-hais-figure { color: #075a3e !important; }
}

.hais-reel {
  display: inline-block;
  overflow: hidden;
  height: 1.15em;
  vertical-align: top;
}

.hais-strip {
  display: block;
  will-change: transform;
}

.hais-cell {
  display: block;
  height: 1.15em;
  line-height: 1.15em;
  white-space: pre;
}

@keyframes strike-bob {
  to { transform: translateY(-14px); }
}

@media (max-width: 991.98px) {
  
}

@keyframes strike-bob {
  to { transform: translateY(-26px); }
}

html.rx-js .hx-hais-bg[data-reveal] {
  opacity: 0;
  translate: 0 calc(9% - 58px);
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
}
html.rx-js .hx-hais-bg[data-reveal].rx-in {
  opacity: 1;
  translate: 0 9%;
}

@keyframes hais-float {
  50% { transform: translateY(-24px); }
}

.hx-wait { padding: clamp(1.75rem, 3.5vw, 2.75rem); }
.hx-wait-title { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
.hx-wait-sub { font-size: 1rem; }
.hx-wait-rail { height: 18px; }
.hx-wait-track { padding-top: 2.8rem; }
.hx-wait-out { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7; }
.hx-wait-hours { font-size: 1.35em; }
.hx-shield { width: clamp(4.5rem, 8vw, 6.5rem); height: auto; }
.hx-wait-ticks { font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
   .hx-hais-bg{ animation: none; }
  
  html.rx-js .hx-hais-bg[data-reveal] { translate: 0 9%; opacity: 1; }
}

.hx-why-refs {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--c-line-2);
}
.hx-why-refs h2 { margin: 0 0 1.25rem; font-size: 1.6rem; color: var(--c-mint, #6fdfc4); }
.hx-why-refs li { color: rgba(226, 255, 240, 0.74); font-size: 0.86rem; }

@media print {
  .hx-why-refs h2 { color: #000 !important; }
  .hx-why-refs li,
  .hx-why-refs a { color: #000 !important; }
}
