.qkf-home {
    --qkf-home-space: clamp(3.4rem, 7.2vw, 7.25rem);
}

.qkf-home-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(34rem, 43vw, 48rem);
    display: grid;
    align-items: center;
    overflow: clip;
    background: var(--qkf-ink);
    color: var(--qkf-surface);
}

.qkf-home-hero-photo {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.qkf-home-hero-photo img {
    position: absolute;
    inset: 0 0 0 auto;
    width: 73%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

.qkf-home-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #201025 0%, #201025 27%, #201025ed 34%, #201025b8 46%, #2010253d 65%, #20102508 90%),
        linear-gradient(0deg, #201025c9, transparent 37%);
}

.qkf-home-hero-photo figcaption {
    position: absolute;
    z-index: 1;
    inset: auto 0 clamp(.85rem, 2.3vw, 2rem);
    display: flex;
    justify-content: flex-end;
    color: var(--qkf-surface);
    font-size: .75rem;
    line-height: 1.35;
}

.qkf-home-hero-photo figcaption span {
    padding: .42rem .72rem;
    border-inline-start: 2px solid var(--qkf-mint);
    background: #201025eb;
}

.qkf-home-masthead {
    padding-block: clamp(3.75rem, 7vw, 7rem);
}

.qkf-home-context {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1.25rem;
    color: var(--qkf-blush);
    font-size: clamp(.84rem, 1.15vw, .95rem);
    font-weight: 700;
    line-height: 1.4;
}

.qkf-home-context::before {
    content: "";
    flex: 0 0 28px;
    height: 2px;
    background: var(--qkf-mint);
}

.qkf-home-masthead h1 {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(3.2rem, 6.55vw, 7rem);
    font-weight: 750;
    line-height: .94;
    letter-spacing: -.073em;
}

.qkf-home-masthead h1 span { display: block; }
.qkf-home-masthead h1 span:last-child { color: var(--qkf-blush); }

.qkf-home-lead {
    max-width: 47ch;
    margin: 1.4rem 0 1.6rem;
    color: #f6ebf6;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.55;
}

.qkf-home-hero-action,
.qkf-home-text-action {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    gap: .65rem;
    font-size: .94rem;
    font-weight: 730;
    line-height: 1.3;
}

.qkf-home-hero-action {
    gap: 1rem;
    padding: .65rem 1rem;
    border: 1px solid var(--qkf-blush);
    background: var(--qkf-blush);
    color: var(--qkf-ink);
    text-decoration: none;
}

.qkf-home-hero-action:hover {
    background: var(--qkf-surface);
    border-color: var(--qkf-surface);
    color: var(--qkf-ink);
}

.qkf-home-hero-action span,
.qkf-home-text-action span { flex: none; }

.qkf-home-hero :focus-visible,
.qkf-home-spaces :focus-visible { outline-color: var(--qkf-mint); }

.qkf-home-exhibit,
.qkf-home-library { padding-block: var(--qkf-home-space); }
.qkf-home-exhibit { background: var(--qkf-paper); }

.qkf-home-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: .85rem clamp(1.8rem, 6vw, 6.75rem);
    margin-bottom: clamp(1.5rem, 4vw, 3.5rem);
}

.qkf-home-section-head h2 {
    margin: 0;
    font-size: clamp(2.35rem, 5.2vw, 5.3rem);
    letter-spacing: -.065em;
    line-height: .97;
}

.qkf-home-section-head p {
    max-width: 49ch;
    margin: 0;
    color: var(--qkf-muted);
}

.qkf-home-exhibits {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 4vw, 4rem);
}

.qkf-home-exhibits::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: auto 0 0 13%;
    height: 53%;
    border-block-end: 1px solid var(--qkf-line);
    background: var(--qkf-tint);
    pointer-events: none;
}

.qkf-home-equipment-photo {
    position: relative;
    z-index: 1;
    margin-bottom: clamp(1.3rem, 3vw, 2.8rem);
    overflow: clip;
    background: var(--qkf-ink);
    color: var(--qkf-surface);
    text-decoration: none;
}

.qkf-home-equipment-photo--rack {
    margin: clamp(1.65rem, 7vw, 6.8rem) clamp(.8rem, 3.6vw, 3.5rem) 2.3rem 0;
}

.qkf-home-equipment-photo img {
    width: 100%;
    aspect-ratio: 1.62;
    object-fit: cover;
    object-position: center 54%;
}

.qkf-home-equipment-photo--rack img {
    aspect-ratio: 1.19;
    object-position: center;
}

.qkf-home-equipment-photo figcaption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 53px;
    gap: 1rem;
    padding: .8rem clamp(.9rem, 2vw, 1.6rem);
    border-top: 1px solid #ae889e;
    color: inherit;
    font-size: clamp(.94rem, 1.5vw, 1.15rem);
    font-weight: 680;
    line-height: 1.32;
}

.qkf-home-equipment-photo:hover {
    background: var(--qkf-accent);
    color: var(--qkf-surface);
}

.qkf-home-equipment-index {
    max-width: 70rem;
    margin: clamp(2.6rem, 5.8vw, 5.4rem) 0 0 auto;
}

.qkf-home-equipment-index h3 {
    margin: 0 0 1.15rem;
    font-size: clamp(1.65rem, 3.2vw, 2.65rem);
    letter-spacing: -.05em;
}

.qkf-home-spec-lines {
    margin: 0 0 1.05rem;
    padding: 0;
    border-block-start: 1px solid var(--qkf-ink);
    list-style: none;
}

.qkf-home-spec-lines li {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .91fr) minmax(0, 1.46fr);
    align-items: baseline;
    gap: .5rem 1.3rem;
    padding-block: .96rem;
    border-bottom: 1px solid var(--qkf-line);
}

.qkf-home-spec-lines a { width: fit-content; color: var(--qkf-accent); font-weight: 750; }
.qkf-home-spec-lines a:hover { color: var(--qkf-ink); }
.qkf-home-spec-lines p, .qkf-home-spec-lines li > span { margin: 0; color: var(--qkf-muted); }
.qkf-home-spec-lines li > span { font-weight: 650; }
.qkf-home-text-action { color: var(--qkf-accent); }
.qkf-home-text-action:hover { color: var(--qkf-ink); }

.qkf-home-planning {
    padding-block: var(--qkf-home-space);
    border-top: 1px solid #ead0df;
    background: var(--qkf-blush);
}

.qkf-home-planning-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 2rem clamp(2rem, 9vw, 8rem);
}

.qkf-home-planning-intro h2 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 5vw, 4.75rem);
    line-height: .98;
}

.qkf-home-planning-intro p { max-width: 39ch; }

.qkf-home-plan-list {
    position: relative;
    border-inline-start: 1px solid #ac547e;
    margin-inline-start: .4rem;
    padding-inline-start: clamp(1.2rem, 3vw, 2.7rem);
}

.qkf-home-plan-list > div { position: relative; padding: 0 0 1.35rem; }
.qkf-home-plan-list > div:last-child { padding-block-end: 0; }
.qkf-home-plan-list > div::before {
    content: "";
    position: absolute;
    inset: .45rem auto auto calc(clamp(1.2rem, 3vw, 2.7rem) * -1 - 6px);
    width: 10px;
    height: 10px;
    background: var(--qkf-accent);
}

.qkf-home-plan-list dt { margin-bottom: .13rem; font-weight: 750; }
.qkf-home-plan-list dd { max-width: 54ch; color: #52384e; }

.qkf-home-spaces {
    position: relative;
    isolation: isolate;
    min-height: clamp(30rem, 42vw, 42rem);
    display: grid;
    align-items: end;
    background: var(--qkf-deep);
    color: var(--qkf-surface);
}

.qkf-home-spaces figure { position: absolute; inset: 0; z-index: -1; }
.qkf-home-spaces figure img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 45%; }
.qkf-home-spaces-layout { display: flex; justify-content: flex-end; padding-block: clamp(2rem, 4.4vw, 4rem); }

.qkf-home-spaces-copy {
    width: min(100%, 29rem);
    padding: clamp(1.55rem, 4vw, 3rem);
    border-top: 3px solid var(--qkf-mint);
    background: var(--qkf-ink);
}

.qkf-home-spaces-copy p { color: #eaddee; }
.qkf-home-spaces-copy .qkf-home-text-action { color: var(--qkf-blush); }
.qkf-home-spaces-copy .qkf-home-text-action:hover { color: var(--qkf-surface); }

.qkf-home-reference-list,
.qkf-home-reference-topics { margin: 0; padding: 0; list-style: none; }

.qkf-home-reference a {
    position: relative;
    display: grid;
    grid-template-columns: clamp(62px, 9vw, 112px) minmax(0, 1fr) 16px;
    gap: .85rem;
    align-items: start;
    padding-block: 1rem;
    text-decoration: none;
}

.qkf-home-reference + .qkf-home-reference { border-bottom: 1px solid var(--qkf-line); }
.qkf-home-reference:nth-child(2) { border-top: 1px solid var(--qkf-line); }

.qkf-home-reference img {
    width: 100%;
    aspect-ratio: 1.25;
    object-fit: cover;
    background: var(--qkf-tint);
}

.qkf-home-reference :is(h3, p) { margin: 0; }
.qkf-home-reference h3 { font-size: clamp(1rem, 1.58vw, 1.25rem); }
.qkf-home-reference time { display: block; margin: 0 0 .22rem; color: var(--qkf-muted); font-size: .78rem; font-weight: 650; }
.qkf-home-reference p { margin-top: .36rem; color: var(--qkf-muted); font-size: .9rem; line-height: 1.43; overflow-wrap: anywhere; }
.qkf-home-reference-arrow { color: var(--qkf-accent); font-weight: 720; }
.qkf-home-reference a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }

.qkf-home-reference--first a {
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 1rem;
    padding: 0 0 1.6rem;
}

.qkf-home-reference--first img { grid-column: 1 / -1; aspect-ratio: 1.82; }
.qkf-home-reference--first h3 { max-width: 27ch; font-size: clamp(1.55rem, 3vw, 2.6rem); }
.qkf-home-reference--first p { max-width: 60ch; font-size: 1rem; }
.qkf-home-reference-topics { display: flex; flex-wrap: wrap; gap: .3rem clamp(1.15rem, 4vw, 3rem); }

.qkf-home-faq {
    padding-block: var(--qkf-home-space);
    border-top: 1px solid var(--qkf-line);
    background: var(--qkf-tint);
}

.qkf-home-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr);
    align-items: start;
    gap: .9rem clamp(1.6rem, 7.5vw, 7rem);
}

.qkf-home-faq-layout h2 { max-width: 13ch; }
.qkf-home-answers { border-top: 1px solid var(--qkf-line); }
.qkf-home-answers details { border-bottom: 1px solid var(--qkf-line); }

.qkf-home-answers summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    padding: .95rem 0;
    font-size: 1rem;
    font-weight: 720;
    line-height: 1.45;
}

.qkf-home-answers summary::-webkit-details-marker { display: none; }
.qkf-home-answers summary::after { content: ""; flex: 0 0 .56rem; width: .56rem; height: .56rem; border-right: 2px solid var(--qkf-accent); border-bottom: 2px solid var(--qkf-accent); transform: translateY(-.12em) rotate(45deg); }
.qkf-home-answers details[open] summary::after { transform: translateY(.16em) rotate(225deg); }
.qkf-home-answers summary:hover { color: var(--qkf-accent); }
.qkf-home-answers details p { max-width: 63ch; margin: 0 2rem 1rem 0; color: var(--qkf-muted); }

.qkf-home-project { padding-block: clamp(2.8rem, 5.4vw, 5rem); background: var(--qkf-surface); }
.qkf-home-project-layout { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.qkf-home-project-layout h2 { margin-bottom: .3em; }
.qkf-home-project-layout p { max-width: 63ch; margin: 0; color: var(--qkf-muted); }
.qkf-home-project-layout .qkf-button { flex: none; }

@media (min-width: 54rem) {
    .qkf-home-reference-list:has(> li:nth-child(2)) {
        display: grid;
        grid-auto-flow: column;
        grid-template: repeat(6, auto) / minmax(0, 1fr) minmax(0, 1.1fr);
        column-gap: clamp(2rem, 5.6vw, 5rem);
        align-content: start;
    }

    .qkf-home-reference--first { grid-row: 1 / span 6; }
}

@media (max-width: 53.99rem) {
    .qkf-home-reference--first img { max-height: 380px; }
}

@media (max-width: 43rem) {
    .qkf-home-hero { min-height: 32rem; align-items: start; }
    .qkf-home-hero-photo img { width: 100%; object-position: 52% center; }
    .qkf-home-hero-photo::after {
        background:
            linear-gradient(180deg, #201025f7 0%, #201025ed 37%, #201025a8 63%, #20102536 88%, #20102575 100%),
            linear-gradient(90deg, #20102594, transparent 82%);
    }
    .qkf-home-masthead { padding-block: 3.5rem 5.45rem; }
    .qkf-home-masthead h1 { font-size: clamp(2.55rem, 8.15vw, 4.25rem); line-height: .98; }
    .qkf-home-lead { margin: 1.15rem 0 1.25rem; }
    .qkf-home-section-head,
    .qkf-home-planning-layout,
    .qkf-home-faq-layout { grid-template-columns: minmax(0, 1fr); }
    .qkf-home-exhibits { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .qkf-home-exhibits::after { inset-inline-start: 1.5rem; height: 61%; }
    .qkf-home-equipment-photo { margin-right: 1.25rem; }
    .qkf-home-equipment-photo--rack { margin: 0 0 1.2rem 2.1rem; }
    .qkf-home-equipment-photo--rack img { aspect-ratio: 1.65; }
    .qkf-home-spec-lines li { grid-template-columns: minmax(0, 1fr); gap: .22rem; padding-block: .85rem; }
    .qkf-home-spec-lines li > :is(span, p) { font-size: .94rem; }
    .qkf-home-spaces { min-height: 0; }
    .qkf-home-spaces figure { position: static; }
    .qkf-home-spaces figure img { aspect-ratio: 1.8; }
    .qkf-home-spaces-layout { padding-block: 0; }
    .qkf-home-spaces-copy { width: 100%; padding-inline: 0; border-top: 0; background: transparent; }
    .qkf-home-faq-layout h2 { max-width: 19ch; }
    .qkf-home-project-layout { flex-direction: column; align-items: start; }
}

@media (max-width: 22rem) {
    .qkf-home-masthead h1 { font-size: 2.4rem; letter-spacing: -.066em; }
    .qkf-home-reference a { gap: .62rem; }
    .qkf-home-reference p { font-size: .85rem; }
}
