/* Forced convection case study */

:root {
  color-scheme: dark;
}

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

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

.convection-study main > section:not(:first-of-type) > .site {
  animation: none !important;
}

.fc-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.16),
      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;
}

.fc-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.28;
  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 74% 42%,
      black,
      transparent 72%
    );
}

.fc-hero::after {
  position: absolute;
  right: -8rem;
  bottom: -18rem;
  z-index: -1;
  width: 40rem;
  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);
}

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

.fc-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;
}

.fc-hero__grid {
  display: grid;
  grid-template-columns:
    minmax(27rem, 0.82fr)
    minmax(38rem, 1.18fr);
  gap: clamp(3rem, 5vw, 5.5rem);
  align-items: center;
}

.fc-hero__copy {
  display: grid;
  min-width: 0;
  gap: var(--sp-4);
  justify-items: start;
}

.fc-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 4.15vw, 4.45rem);
  line-height: 0.99;
  text-wrap: balance;
}

.fc-hero__copy .lead {
  max-width: 39rem;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

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

.fc-tags li {
  padding: 0.44rem 0.72rem;
  color: var(--c-text-soft);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(217, 240, 246, 0.1);
  border-radius: var(--r-pill);
  font-size: var(--fs-200);
}

.fc-hero__visual {
  position: relative;
  width: min(100%, 46rem);
  overflow: hidden;
  justify-self: end;
  background: rgba(17, 24, 31, 0.76);
  border: 1px solid rgba(110, 187, 213, 0.2);
  border-radius: var(--r-xl);
  box-shadow:
    var(--sh-lg),
    0 0 3rem rgba(0, 166, 214, 0.1);
}

.fc-hero__visual video {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 7;
  background: #fff;
  object-fit: contain;
}

.fc-grid-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  background: rgba(23, 28, 35, 0.94);
  border-top: 1px solid rgba(217, 240, 246, 0.08);
}

.fc-grid-cue {
  display: grid;
  min-width: 13.5rem;
  gap: 0.18rem;
  color: var(--c-main-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

.fc-grid-cue strong {
  color: var(--c-text-soft);
  font-size: 0.56rem;
  letter-spacing: 0;
  text-transform: none;
}

.fc-grid-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.fc-grid-tabs button {
  min-height: 2.3rem;
  color: var(--c-muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(217, 240, 246, 0.08);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.fc-grid-tabs button:hover,
.fc-grid-tabs button:focus-visible,
.fc-grid-tabs button.is-active {
  color: var(--c-text);
  background: rgba(0, 166, 214, 0.11);
  border-color: rgba(110, 187, 213, 0.42);
}


.fc-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(38, 46, 57, 0.56);
  border: 1px solid rgba(217, 240, 246, 0.1);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.fc-hero__facts article {
  display: grid;
  grid-template-rows: 1.2rem minmax(2.6rem, auto);
  gap: 0.35rem;
  align-content: start;
  padding: 0.82rem 1.05rem;
}

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

.fc-hero__facts span,
.fc-method span,
.fc-model__content article > span,
.fc-grid-study span,
.fc-convergence-note > 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;
}

.fc-hero__facts strong {
  color: var(--c-text-soft);
  font-family: var(--font-display);
  font-size: var(--fs-200);
  line-height: 1.4;
}

.fc-section {
  position: relative;
  background:
    linear-gradient(
      180deg,
      rgba(31, 37, 46, 0.62),
      rgba(23, 28, 35, 0.95)
    );
}

.fc-section.section {
  padding-block: clamp(4.5rem, 7vw, 7rem);
}

.fc-section--surface {
  background:
    radial-gradient(
      circle at 80% 18%,
      rgba(0, 166, 214, 0.08),
      transparent 26rem
    ),
    linear-gradient(
      180deg,
      rgba(23, 28, 35, 0.98),
      rgba(31, 37, 46, 0.74)
    );
  border-block: 1px solid rgba(217, 240, 246, 0.07);
}

.fc-section__head,
.fc-outcome__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.94fr)
    minmax(22rem, 1.06fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

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

.fc-section__head h2,
.fc-feature h2,
.fc-outcome h2 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 3.75vw, 3.9rem);
  line-height: 1.02;
  text-wrap: balance;
}

.fc-section__head > p {
  justify-self: end;
}

.fc-model {
  display: grid;
  grid-template-columns:
    minmax(22rem, 1.05fr)
    minmax(0, 0.95fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.fc-media {
  overflow: hidden;
  margin: 0;
  background: rgba(38, 46, 57, 0.56);
  border: 1px solid rgba(217, 240, 246, 0.1);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}

.fc-media img {
  display: block;
  width: 100%;
  height: auto;
}

.fc-media figcaption {
  padding: 1rem 1.2rem;
  color: var(--c-muted);
  font-size: var(--fs-200);
  line-height: 1.55;
}

.fc-media--schematic {
  width: min(100%, 36rem);
  justify-self: start;
}

.fc-media--schematic img {
  background: #fff;
}

.fc-model__content {
  display: grid;
  overflow: hidden;
  background: rgba(38, 46, 57, 0.5);
  border: 1px solid rgba(217, 240, 246, 0.1);
  border-radius: var(--r-xl);
}

.fc-model__content article {
  display: grid;
  gap: var(--sp-3);
  padding: clamp(1.4rem, 3vw, 2rem);
}

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

.fc-model__content strong {
  color: var(--c-text-soft);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.6;
}

.fc-method {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  background: rgba(38, 46, 57, 0.5);
  border: 1px solid rgba(217, 240, 246, 0.1);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}

.fc-method article {
  display: grid;
  min-height: 17rem;
  grid-template-rows:
    1.4rem
    minmax(3.2rem, auto)
    auto;
  gap: var(--sp-3);
  align-content: start;
  padding: clamp(1.4rem, 2.4vw, 2rem);
}

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

.fc-method h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
}

.fc-method p,
.fc-feature__copy > p:not(.lead),
.fc-outcome__copy > p:not(.lead),
.fc-grid-study p,
.fc-convergence-note p {
  color: var(--c-muted);
}

.fc-feature {
  display: grid;
  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(22rem, 1.08fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.fc-feature__copy {
  display: grid;
  gap: var(--sp-4);
}

.fc-media--result {
  width: min(100%, 41rem);
  justify-self: end;
}

.fc-media--result img {
  background: #fff;
}

.fc-grid-study {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  background: rgba(38, 46, 57, 0.5);
  border: 1px solid rgba(217, 240, 246, 0.1);
  border-radius: var(--r-xl);
}

.fc-grid-study article {
  display: grid;
  min-height: 15rem;
  grid-template-rows:
    1.4rem
    2rem
    1.4rem
    auto;
  gap: var(--sp-3);
  align-content: start;
  padding: clamp(1.4rem, 2.4vw, 2rem);
}

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

.fc-grid-study strong {
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
}

.fc-grid-study small {
  color: var(--c-main-soft);
  font-family: var(--font-mono);
}

.fc-convergence-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-top: var(--sp-5);
  padding: 1.25rem 1.5rem;
  background: rgba(0, 166, 214, 0.06);
  border: 1px solid rgba(110, 187, 213, 0.16);
  border-radius: var(--r-lg);
}

.fc-outcome {
  display: grid;
  min-height: 72svh;
  align-content: center;
  background:
    radial-gradient(
      circle at 78% 32%,
      rgba(0, 166, 214, 0.1),
      transparent 28rem
    ),
    linear-gradient(
      180deg,
      rgba(31, 37, 46, 0.74),
      rgba(23, 28, 35, 0.99)
    );
  border-top: 1px solid rgba(217, 240, 246, 0.08);
}

.fc-outcome__grid {
  align-items: center;
}

.fc-outcome__copy {
  display: grid;
  gap: var(--sp-4);
}

.convection-study .page-top {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
  translate: 0 0 !important;
  scale: 1 !important;
}


@media (max-width: 82rem) {
  .fc-hero__grid {
    grid-template-columns:
      minmax(24rem, 0.84fr)
      minmax(34rem, 1.16fr);
    gap: 2.5rem;
  }

  .fc-hero h1 {
    font-size: clamp(2.65rem, 4vw, 3.8rem);
  }

  .fc-hero__visual {
    width: min(100%, 40rem);
  }

  .fc-method,
  .fc-grid-study {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fc-method article:nth-child(3),
  .fc-grid-study article:nth-child(3) {
    border-top: 1px solid rgba(217, 240, 246, 0.09);
    border-left: 0;
  }

  .fc-method article:nth-child(4),
  .fc-grid-study article:nth-child(4) {
    border-top: 1px solid rgba(217, 240, 246, 0.09);
  }
}

@media (max-width: 68rem) {
  .fc-hero {
    height: auto;
    min-height: 100svh;
    padding-block: 1rem 2.5rem;
  }

  .fc-hero__grid,
  .fc-section__head,
  .fc-model,
  .fc-feature,
  .fc-outcome__grid {
    grid-template-columns: 1fr;
  }

  .fc-hero__grid {
    gap: 1.5rem;
  }

  .fc-hero__visual {
    width: min(100%, 42rem);
    justify-self: center;
  }

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

  .fc-media--schematic,
  .fc-media--result {
    justify-self: center;
  }
}

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

  .fc-hero__top {
    font-size: 0.58rem;
  }

  .fc-hero__copy {
    gap: 0.65rem;
  }

  .fc-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 9.2vw, 2.8rem);
    line-height: 0.98;
  }

  .fc-hero__copy .lead {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .fc-tags {
    gap: 0.34rem;
  }

  .fc-tags li {
    padding: 0.3rem 0.46rem;
    font-size: 0.63rem;
  }

  .fc-hero__visual {
    width: min(100%, 24rem);
    border-radius: var(--r-lg);
  }

  .fc-hero__visual video {
    aspect-ratio: 8 / 6.6;
  }

  .fc-grid-controls {
    grid-template-columns: 1fr;
    gap: 0.38rem;
    padding: 0.42rem;
  }

  .fc-grid-cue {
    min-width: 0;
  }

  .fc-grid-tabs {
    gap: 0.3rem;
  }

  .fc-grid-tabs button {
    min-height: 1.9rem;
  }


  .fc-hero__facts article {
    grid-template-rows: 1rem minmax(2rem, auto);
    padding: 0.52rem 0.45rem;
  }

  .fc-hero__facts span {
    font-size: 0.48rem;
  }

  .fc-hero__facts strong {
    font-size: 0.6rem;
    line-height: 1.25;
  }

  .fc-section__head h2,
  .fc-feature h2,
  .fc-outcome h2 {
    max-width: none;
    font-size: clamp(2.05rem, 9.8vw, 3.1rem);
  }

  .fc-method,
  .fc-grid-study {
    grid-template-columns: 1fr;
  }

  .fc-method article,
  .fc-grid-study article {
    min-height: 12rem;
  }

  .fc-method article + article,
  .fc-grid-study article + article {
    border-top: 1px solid rgba(217, 240, 246, 0.09);
    border-left: 0;
  }

  .fc-media,
  .fc-model__content,
  .fc-method,
  .fc-grid-study {
    border-radius: var(--r-lg);
  }

  .fc-convergence-note {
    grid-template-columns: 1fr;
  }

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

/* Grid comparison invitation */
.fc-grid-tabs button:not(.is-active) {
  animation: fc-grid-invite 1.8s ease-in-out infinite alternate;
}
.fc-grid-tabs button:nth-child(2) { animation-delay: -0.45s; }
.fc-grid-tabs button:nth-child(3) { animation-delay: -0.9s; }
.fc-grid-tabs button:nth-child(4) { animation-delay: -1.35s; }
.fc-hero__visual.has-grid-selection .fc-grid-tabs button { animation: none; }

/* Project modal layout */

@media (min-width: 68.001rem) {
  .is-project-embed .fc-hero {
    height: 100svh;
    min-height: 38rem;
    grid-template-rows:
      minmax(0, 1fr)
      auto;
    align-content: stretch;
    row-gap: 0.75rem;
    padding-block: 1rem 0.8rem;
  }

  .is-project-embed .fc-hero__top {
    position: absolute;
    top: 0.8rem;
    right: 3.2rem;
    z-index: 3;
    width: auto;
  }

  .is-project-embed .fc-hero__grid {
    grid-row: 1;
    height: 100%;
    min-height: 0;
    grid-template-columns:
      minmax(25rem, 0.94fr)
      minmax(30rem, 1.06fr);
    gap: clamp(1.8rem, 3vw, 3rem);
    align-self: stretch;
    align-items: center;
    padding-top: 1.1rem;
  }

  .is-project-embed .fc-hero__copy {
    gap: 0.78rem;
    align-self: center;
  }

  .is-project-embed .fc-hero h1 {
    font-size: clamp(2.55rem, 3.35vw, 3.6rem);
  }

  .is-project-embed .fc-hero__copy .lead {
    max-width: 38rem;
    font-size: 0.96rem;
  }

  .is-project-embed .fc-tags li {
    padding: 0.35rem 0.6rem;
    font-size: 0.68rem;
  }

  .is-project-embed .fc-hero__visual {
    display: grid;
    width: min(100%, 39rem);
    height: min(51svh, 25rem);
    min-height: 0;
    grid-template-rows:
      minmax(0, 1fr)
      auto;
    align-self: center;
    justify-self: end;
  }

  .is-project-embed .fc-hero__visual video {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .is-project-embed .fc-grid-controls {
    grid-template-columns:
      minmax(12.5rem, 0.78fr)
      minmax(0, 1.22fr);
    gap: 0.55rem;
    padding: 0.45rem;
  }

  .is-project-embed .fc-grid-cue {
    min-width: 0;
    font-size: 0.5rem;
  }

  .is-project-embed .fc-grid-cue strong {
    font-size: 0.5rem;
  }

  .is-project-embed .fc-grid-tabs {
    gap: 0.35rem;
  }

  .is-project-embed .fc-grid-tabs button {
    min-height: 1.95rem;
  }

  .is-project-embed .fc-hero__facts {
    grid-row: 2;
    align-self: end;
  }

  .is-project-embed .fc-hero__facts article {
    grid-template-rows:
      1rem
      minmax(1.8rem, auto);
    padding: 0.52rem 0.72rem;
  }

  .is-project-embed .fc-hero__facts span {
    font-size: 0.5rem;
  }

  .is-project-embed .fc-hero__facts strong {
    font-size: 0.64rem;
    line-height: 1.28;
  }
}

@keyframes fc-grid-invite {
  to {
    background: rgba(0, 166, 214, 0.075);
    border-color: rgba(110, 187, 213, 0.3);
    box-shadow: 0 0 0.75rem rgba(0, 166, 214, 0.08);
  }
}

.fc-model__content .math-equation {
  font-size: clamp(1rem, 1.7vw, 1.3rem);
}

/* Mathematical fractions */

.math-equation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48em;
  align-items: center;
  color: var(--c-text) !important;
  font-family: var(--font-display) !important;
  font-size: inherit;
  font-weight: var(--fw-semibold);
  letter-spacing: normal;
  line-height: 1.25;
  text-transform: none;
}

.math-equation > span {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.math-frac {
  display: inline-grid;
  min-width: 2.25em;
  grid-template-rows: auto auto;
  align-items: center;
  color: inherit;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

.math-frac > span {
  color: inherit !important;
  font-family: inherit !important;
  font-size: 0.9em !important;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.math-frac > span:first-child {
  padding: 0 0.32em 0.2em;
  border-bottom: 1.5px solid currentColor;
}

.math-frac > span:last-child {
  padding: 0.2em 0.32em 0;
}

@media (max-width: 48rem) {
  .math-equation {
    gap: 0.4em;
  }

  .math-frac {
    min-width: 2.05em;
  }
}
