/* Homepage scene 03: matched versus heterologous host, scoped to this section. */
.home-mismatch {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--dogma-page);
    color: var(--dogma-copy);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
/* Center the header and the two aligned tracks as one viewport composition. */
.home-mismatch__inner {
    box-sizing: border-box;
    width: min(1200px, calc(100% - 72px));
    margin-inline: auto;
    padding-block: max(84px, 10svh) 2svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(7px, 1.3svh, 14px);
    transform: translateY(-1svh);
}
.home-mismatch__visual {
    width: min(100%, 1000px, calc((100svh - 245px) * 1.5));
    min-width: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4074s ease, transform 0.4815s ease;
}
.home-mismatch__diagram { display: block; width: 100%; height: auto; overflow: visible; }
.home-mismatch__copy {
    max-width: 850px;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4074s ease 0.07407s, transform 0.4815s ease 0.07407s;
}
.home-mismatch.is-active .home-mismatch__visual,
.home-mismatch.is-active .home-mismatch__copy { opacity: 1; transform: none; }
.home-mismatch__kicker { font: 700 .73rem/1.4 'Inter', sans-serif; letter-spacing: .18em; color: var(--dogma-blue); margin: 0 0 clamp(6px, 1svh, 11px); }
.home-mismatch__copy h2 { font: 800 clamp(2.2rem, 3.8vw, 3.7rem)/1.08 'Inter', sans-serif; letter-spacing: -.055em; color: var(--dogma-heading); margin: 0 0 clamp(7px, 1svh, 12px); }
.home-mismatch__copy > p:last-child { max-width: 74ch; font: 400 clamp(.94rem, 1.17vw, 1.1rem)/1.5 'Inter', sans-serif; color: var(--dogma-copy); margin: 0 auto; }
.home-mismatch__axis { fill: none; stroke: var(--dogma-silver-0); stroke-width: 2.5; stroke-linecap: round; opacity: .8; }
.home-mismatch__codon { fill: var(--dogma-silver-1); opacity: .75; }
.home-mismatch__end { font: 700 18px/1 'Inter', sans-serif; fill: var(--dogma-heading); }
.home-mismatch__row-label { font: 700 17px/1 'Inter', sans-serif; fill: var(--dogma-heading); }
.home-mismatch__sublabel { font: 500 13px/1 'Inter', sans-serif; fill: var(--dogma-muted); }
.home-mismatch__same { font: 600 13px/1 'Inter', sans-serif; letter-spacing: .04em; fill: var(--dogma-blue); opacity: 0; transition: opacity 0.2593s ease; }
.home-mismatch.is-active .home-mismatch__same { opacity: .7; }
.home-mismatch__status { font: 700 14px/1 'Inter', sans-serif; fill: var(--dogma-blue); opacity: 0; transition: opacity 0.2963s ease; }
.home-mismatch__status--abnormal { fill: #b76d78; }
.home-mismatch__status.is-shown { opacity: 1; }
.home-mismatch__ribosome path:first-child { fill: var(--dogma-page); stroke: var(--dogma-blue); stroke-width: 2.1; }
.home-mismatch__ribosome path:nth-child(2) { fill: var(--dogma-page); stroke: var(--dogma-blue); stroke-width: 2.1; }
.home-mismatch__peptide path { fill: none; stroke: var(--dogma-blue); stroke-width: 3.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.home-mismatch__peptide circle { fill: var(--dogma-page); stroke: var(--dogma-blue); stroke-width: 1.9; }
.home-mismatch__peptide--abnormal path, .home-mismatch__peptide--abnormal circle { transition: stroke 0.4815s ease; }
.home-mismatch__peptide--abnormal.is-unstable path, .home-mismatch__peptide--abnormal.is-unstable circle { stroke: #bf7b84; }
.home-mismatch__peptide--abnormal.is-unstable circle:nth-of-type(3n) { stroke: var(--dogma-blue); }
.home-mismatch__hint { font: 500 12px/1 'Inter', sans-serif; fill: var(--dogma-muted); }
@media (max-width: 800px) {
    .home-mismatch__inner { width: min(680px, calc(100% - 44px)); padding-block: max(78px, 10svh) 2svh; }
    .home-mismatch__visual { width: 100%; }
    .home-mismatch__copy h2 { font-size: clamp(2rem, 5.8vw, 3.1rem); }
}
@media (max-width: 520px) {
    .home-mismatch__inner { width: calc(100% - 28px); padding-block: max(72px, 10svh) 2svh; gap: clamp(10px, 2svh, 18px); }
    .home-mismatch__kicker { font-size: .62rem; margin-bottom: 7px; }
    .home-mismatch__copy h2 { font-size: clamp(1.8rem, 7.4vw, 2.3rem); margin-bottom: 8px; }
    .home-mismatch__copy > p:last-child { font-size: clamp(.8rem, 3.5vw, .94rem); line-height: 1.43; }
    .home-mismatch__row-label { font-size: 22px; }
    .home-mismatch__sublabel, .home-mismatch__same { font-size: 18px; }
    .home-mismatch__end { font-size: 24px; }
    .home-mismatch__status { font-size: 20px; }
}
@media (max-width: 520px) and (max-height: 700px) {
    .home-mismatch__inner { padding-block: max(57px, 8svh) 1svh; gap: 5px; }
    .home-mismatch__copy h2 { font-size: clamp(1.55rem, 6.7vw, 2rem); margin-bottom: 4px; }
    .home-mismatch__copy > p:last-child { font-size: .78rem; line-height: 1.34; }
}
@media (max-height: 650px) and (min-width: 801px) {
    .home-mismatch__inner { padding-block: 76px 8px; transform: none; }
    .home-mismatch__visual { width: min(100%, 1000px, calc((100svh - 225px) * 1.5)); }
    .home-mismatch__copy h2 { font-size: clamp(2rem, 3.2vw, 3.1rem); }
}
@media (prefers-reduced-motion: reduce) {
    .home-mismatch__visual, .home-mismatch__copy, .home-mismatch__same, .home-mismatch__status { opacity: 1 !important; transform: none !important; transition: none !important; }
}
