.home-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1rem, 4vw, 4rem);
    align-items: center;
}

.home-faq-topics {
    display: grid;
    gap: clamp(1.35rem, 3vw, 2.5rem);
    margin-top: clamp(1.2rem, 3vw, 2.5rem);
}

.home-faq-topic {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr);
    gap: .7rem clamp(1rem, 3vw, 2.5rem);
    align-items: start;
}

.home-faq-topic h3 {
    margin: .65rem 0 0;
}

.home-disclosures {
    display: grid;
    gap: .65rem;
}

.home-disclosures details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.home-disclosures summary {
    cursor: pointer;
    min-height: 44px;
    padding: .8rem 1rem;
    font-weight: 750;
}

.home-disclosures details[open] {
    border-color: #a6b2af;
}

.home-disclosures details > div {
    padding: 0 1rem 1rem;
    color: var(--muted);
}

.home-disclosures p:last-child,
.home-next p:last-child {
    margin-bottom: 0;
}

.home-next {
    background: var(--dark);
    color: #f7f7f1;
    border-top: 1px solid #4b5a5e;
}

.home-next .button {
    min-width: min(100%, 12rem);
    justify-self: end;
}

.home-services .service-grid {
    gap: clamp(.8rem, 1.75vw, 1.35rem);
    margin-top: clamp(1rem, 2.5vw, 2rem);
}

.home-services .service-card {
    padding: clamp(1.1rem, 2.1vw, 1.85rem);
    border-top: 3px solid #db753d;
}

.home-service-label {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1.15rem;
}

.home-service-label .card-kind {
    margin: 0;
}

.home-service-icon {
    display: grid;
    place-items: center;
    flex: 0 0 2.65rem;
    width: 2.65rem;
    height: 2.65rem;
    color: #9b4823;
    background: #f8eae0;
    border-radius: 4px;
}

.home-service-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.home-services .service-card h3 {
    font-size: clamp(1.35rem, 2.05vw, 1.9rem);
    text-wrap: balance;
}

.home-services .service-card h3 a {
    text-decoration: underline;
    text-decoration-color: #b8c2bf;
    text-decoration-thickness: 1px;
    text-underline-offset: .17em;
}

.home-services .service-card h3 a:hover {
    text-decoration-color: currentColor;
}

.home-service-scope {
    margin: .2rem 0 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.home-service-scope h4 {
    margin: 0 0 .5rem;
    font-size: 1rem;
}

.home-service-scope ul {
    padding-inline-start: 1.15rem;
    margin: 0;
}

.home-service-scope li + li {
    margin-top: .4rem;
}

.home-service-scope li::marker {
    color: #a44b24;
}

.home-service-actions {
    margin-top: auto;
}

.home-service-actions .button {
    width: 100%;
}

.home-services-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem 1.5rem;
    margin-top: 1rem;
}

.home-services-note p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 820px) {
    .home-services .service-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 660px) {
    .home-section-grid,
    .home-faq-topic {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-faq-topic h3 {
        margin: 0;
    }

    .home-next .button {
        justify-self: stretch;
    }
}

.home-hero {
    background: radial-gradient(ellipse at 85% 15%, #263943, transparent 65%), #18232d;
    padding-block: clamp(1.5rem, 4vw, 4.25rem);
}

.home-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
}

.home-hero h1 {
    font-size: clamp(2rem, 8.8cqi, 4rem);
    line-height: 1.03;
    margin-bottom: clamp(.9rem, 2vw, 1.4rem);
}

.home-hero .hero-intro {
    color: #d4e0e5;
}

.home-hero .scene {
    background: #1b282f;
    border-color: #52646d;
}

.home-hero .scene-caption,
.home-hero .scene-controls {
    padding: .75rem clamp(.7rem, 2vw, 1.15rem);
}

.home-hero .scene-caption {
    border-bottom: 1px solid #40535e;
}

.home-hero .scene-visual {
    position: relative;
    overflow: clip;
    background: radial-gradient(ellipse at 54% 60%, #34444d, #1b282f 75%);
}

.home-hero .scene-visual svg {
    height: auto;
    aspect-ratio: 680 / 430;
}

.home-hero .playback button {
    border-color: var(--orange);
    color: #ffc298;
    font-weight: 700;
}

.home-hero .playback button:hover {
    color: #18232d;
    background: #ffc298;
}

.home-hero .scene-controls button {
    padding-inline: .7rem;
}

.assembly-stage {
    position: absolute;
    inset: .65rem auto auto .75rem;
    display: grid;
    padding: .35rem .55rem;
    border: 1px solid #596b75;
    border-radius: 4px;
    color: #ecf3f6;
    background: #1b282f;
    font-size: .875rem;
}

.assembly-stage span {
    grid-area: 1 / 1;
}

.assembly-stage span:not(.assembly-stage-final),
.assembly-axes,
.assembly-rope,
.assembly-truss-load,
.assembly-panel-load,
.home-hero .scene-truck,
.home-hero .scene-crane {
    opacity: 0;
}

.is-assembling {
    --assembly-time: 16s;
    animation: assembly-clock var(--assembly-time) linear;
}

.is-assembling :is(.assembly-axes, .scene-truck, .scene-crane, .assembly-rope, .assembly-truss-load, .assembly-panel-load, .assembly-columns, .assembly-front-frame, .assembly-other-frames, .assembly-bracing, .scene-walls, .scene-roof, .assembly-stage span) {
    animation-duration: var(--assembly-time);
    animation-timing-function: linear;
    animation-fill-mode: both;
}

.is-assembling[data-paused="true"],
.is-assembling[data-paused="true"] * {
    animation-play-state: paused;
}

.is-assembling .assembly-axes { animation-name: assembly-axes; }
.is-assembling .scene-truck { animation-name: assembly-delivery; }
.is-assembling .scene-crane { animation-name: assembly-crane; }
.is-assembling .assembly-truss-rope { animation-name: assembly-truss-rope; transform-origin: 279px 88px; }
.is-assembling .assembly-truss-load { animation-name: assembly-truss; }
.is-assembling .assembly-panel-rope { animation-name: assembly-panel-rope; transform-origin: 313px 82px; }
.is-assembling .assembly-panel-load { animation-name: assembly-panel; }
.is-assembling .assembly-columns { animation-name: assembly-columns; }
.is-assembling .assembly-front-frame { animation-name: assembly-front-frame; }
.is-assembling .assembly-other-frames { animation-name: assembly-other-frames; }
.is-assembling .assembly-bracing { animation-name: assembly-other-frames; }
.is-assembling .scene-walls { animation-name: assembly-walls; }
.is-assembling .scene-roof { animation-name: assembly-roof; }
.is-assembling .assembly-stage-prep { animation-name: label-prep; }
.is-assembling .assembly-stage-delivery { animation-name: label-delivery; }
.is-assembling .assembly-stage-frame { animation-name: label-frame; }
.is-assembling .assembly-stage-panels { animation-name: label-panels; }
.is-assembling .assembly-stage-final { animation-name: label-final; }

@keyframes assembly-clock { from { --assembly-clock: 0; } to { --assembly-clock: 1; } }
@keyframes assembly-axes { 0%, 24% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes assembly-delivery {
    0%, 14% { opacity: 0; transform: translate(-145px, 76px); }
    18% { opacity: 1; }
    29%, 37% { opacity: 1; transform: translate(28px, -16px); }
    44%, 100% { opacity: 0; transform: translate(76px, -42px); }
}
@keyframes assembly-crane { 0%, 28%, 90%, 100% { opacity: 0; } 33%, 83% { opacity: 1; } }
@keyframes assembly-truss-rope {
    0%, 38% { opacity: 0; transform: scaleY(2.8); }
    40% { opacity: 1; transform: scaleY(2.8); }
    52%, 54% { opacity: 1; transform: scaleY(1); }
    55%, 100% { opacity: 0; }
}
@keyframes assembly-truss {
    0%, 38% { opacity: 0; transform: translateY(63px); }
    40% { opacity: 1; transform: translateY(63px); }
    52%, 54% { opacity: 1; transform: translateY(0); }
    55%, 100% { opacity: 0; }
}
@keyframes assembly-panel-rope {
    0%, 63% { opacity: 0; transform: scaleY(1.55); }
    65% { opacity: 1; transform: scaleY(1.55); }
    72% { opacity: 1; transform: scaleY(1.41096); }
    75%, 76% { opacity: 1; transform: scaleY(1.64384); }
    78%, 100% { opacity: 0; }
}
@keyframes assembly-panel {
    0%, 63% { opacity: 0; transform: translateY(40.15px); }
    65% { opacity: 1; transform: translateY(40.15px); }
    72% { opacity: 1; transform: translateY(30px); }
    75%, 76% { opacity: 1; transform: translateY(47px); }
    78%, 100% { opacity: 0; }
}
@keyframes assembly-columns { 0%, 34% { opacity: 0; } 39%, 100% { opacity: 1; } }
@keyframes assembly-front-frame { 0%, 53% { opacity: 0; } 54%, 100% { opacity: 1; } }
@keyframes assembly-other-frames { 0%, 54% { opacity: 0; } 62%, 100% { opacity: 1; } }
@keyframes assembly-walls {
    0%, 75% { opacity: 0; clip-path: inset(0 100% 0 0); }
    76% { opacity: 1; }
    84%, 100% { opacity: 1; clip-path: inset(0); }
}
@keyframes assembly-roof {
    0%, 82% { opacity: 0; clip-path: inset(0 100% 0 0); }
    83% { opacity: 1; }
    90%, 100% { opacity: 1; clip-path: inset(0); }
}
@keyframes label-prep { 0% { opacity: 1; } 15%, 100% { opacity: 0; } }
@keyframes label-delivery { 0%, 14% { opacity: 0; } 16%, 32% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes label-frame { 0%, 32% { opacity: 0; } 35%, 61% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes label-panels { 0%, 61% { opacity: 0; } 64%, 88% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes label-final { 0%, 88% { opacity: 0; } 91%, 100% { opacity: 1; } }

@media (max-width: 899px) {
    .home-hero .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .home-hero h1 {
        font-size: clamp(2rem, 10cqi, 3.5rem);
        max-width: 18ch;
    }

    .home-hero .scene {
        width: min(100%, 680px);
    }
}

@media (max-width: 540px) {
    .assembly-grid {
        display: none;
    }

    .home-hero .actions .button {
        flex: 1 1 100%;
    }

    .home-hero .scene-controls {
        display: grid;
        gap: .65rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero .scene-controls[hidden] {
        display: none;
    }

    .home-hero .playback button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .is-assembling,
    .is-assembling * {
        animation: none !important;
    }
}

.home-stages-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .6rem 1.5rem;
    margin-bottom: clamp(1rem, 2.5vw, 1.8rem);
}

.home-stages-heading p {
    max-width: 60ch;
    margin: 0;
    color: var(--muted);
}

.home-stage-picker {
    display: grid;
    grid-template-columns: minmax(13rem, 1fr) minmax(0, 2fr);
    grid-template-rows: repeat(3, auto) 1fr;
    align-items: start;
    gap: .6rem clamp(.8rem, 2.25vw, 1.7rem);
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.home-stage-picker label {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 52px;
    padding: .6rem .85rem;
    border: 1px solid #a6b2af;
    border-radius: 4px;
    background: #f7f8f6;
    cursor: pointer;
    font-weight: 700;
}

.home-stage-picker label svg {
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    color: #9b4823;
}

.home-stage-picker input:checked + label {
    background: #18232d;
    color: #f7f7f1;
    border-color: #18232d;
    box-shadow: inset 3px 0 var(--orange);
}

.home-stage-picker input:checked + label svg {
    color: #ffc298;
}

.home-stage-picker input:focus-visible + label {
    outline: 3px solid #a64a23;
    outline-offset: 2px;
}

.home-stage-picker input:not(:checked) + label + .home-stage-panel {
    display: none;
}

.home-stage-panel {
    grid-column: 2;
    grid-row: 1 / span 4;
    padding: clamp(1.1rem, 2.6vw, 2.4rem);
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.home-stage-panel h4 {
    margin: 1.2rem 0 .45rem;
    font-size: 1rem;
}

.home-stage-panel ul {
    padding-inline-start: 1.15rem;
    margin: 0 0 1.4rem;
}

.home-stage-panel li + li {
    margin-top: .35rem;
}

.home-stage-panel li::marker {
    color: #a44b24;
}

@media (max-width: 720px) {
    .home-stage-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto auto;
        align-items: stretch;
    }

    .home-stage-picker label {
        grid-column: auto;
        padding-inline: .55rem;
        line-height: 1.25;
    }

    .home-stage-picker label svg {
        flex-basis: 1.15rem;
        width: 1.15rem;
        height: 1.15rem;
    }

    .home-stage-panel {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

@media (max-width: 420px) {
    .home-stage-picker label {
        gap: .45rem;
        font-size: .9rem;
    }

    .home-stage-panel .button {
        width: 100%;
    }
}

.home-scope-intro,
.home-quality-intro {
    max-width: 68ch;
    color: var(--muted);
}

.home-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.8rem, 1.75vw, 1.35rem);
    margin-top: clamp(1rem, 2.5vw, 1.8rem);
}

.home-scope-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    row-gap: .95rem;
    padding: clamp(1.1rem, 2.15vw, 1.9rem);
}

.home-scope-heading {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.home-scope-heading h3 {
    margin: 0;
    font-size: clamp(1.25rem, 1.85vw, 1.65rem);
    letter-spacing: -.025em;
}

.home-scope-icon {
    display: grid;
    place-items: center;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    border-radius: 4px;
    background: #f8eae0;
    color: #9b4823;
}

.home-scope-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.home-scope-card dl {
    display: grid;
    align-content: start;
    gap: .8rem;
    margin: 0;
}

.home-scope-card dl > div {
    border-top: 1px solid var(--line);
    padding-top: .7rem;
}

.home-scope-card dt {
    font-weight: 750;
}

.home-scope-card dd {
    margin: .2rem 0 0;
    color: var(--muted);
}

.home-scope-note {
    margin: 1rem 0 0;
    padding: .8rem 1rem;
    border-left: 3px solid #be5b20;
    background: #f0e9df;
}

@media (max-width: 820px) {
    .home-scope-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-scope-card {
        grid-template-rows: auto auto;
        grid-row: auto;
    }
}

.home-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.8rem, 1.75vw, 1.35rem);
    margin-top: clamp(1rem, 2.5vw, 1.8rem);
}

.home-quality-card {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: clamp(1.1rem, 2.1vw, 1.85rem);
}

.home-quality-heading {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.home-quality-heading h3,
.home-quality-records p,
.home-quality-note {
    margin: 0;
}

.home-quality-icon {
    display: grid;
    place-items: center;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    color: #f7f7f1;
    background: #263943;
    border-radius: 4px;
}

.home-quality-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.home-quality-card h4 {
    margin: 0 0 .45rem;
    font-size: 1rem;
}

.home-quality-card ul {
    margin: 0;
    padding-inline-start: 1.15rem;
}

.home-quality-card li + li {
    margin-top: .4rem;
}

.home-quality-records {
    border-top: 1px solid var(--line);
    padding-top: .8rem;
}

.home-quality-records p,
.home-quality-note {
    color: var(--muted);
}

.home-quality-example {
    margin-top: 1rem;
    border: 1px solid #a6b2af;
    border-radius: 4px;
    background: #f7f8f6;
}

.home-quality-example summary {
    min-height: 44px;
    padding: .7rem 1rem;
    cursor: pointer;
    font-weight: 700;
}

.home-quality-example-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: 1rem;
    padding: 0 1rem 1rem;
}

.home-quality-example-content figure,
.home-quality-example-content p {
    margin: 0;
}

.home-quality-example-content svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.home-quality-example-content figcaption {
    color: var(--muted);
    font-size: .875rem;
}

.home-quality-note {
    margin-top: 1rem;
}

@media (max-width: 820px) {
    .home-quality-grid,
    .home-quality-example-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

.home-cost-intro {
    max-width: 68ch;
    color: var(--muted);
}

.home-cost-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.8rem, 1.75vw, 1.35rem);
    margin-top: clamp(1rem, 2.5vw, 1.8rem);
}

.home-cost-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.1rem, 2.1vw, 1.85rem);
}

.home-cost-card h3 {
    margin: 0 0 1rem;
}

.home-cost-factors {
    display: grid;
    gap: .7rem;
    margin: 0 0 1.1rem;
}

.home-cost-factors > div {
    position: relative;
    border-top: 1px solid var(--line);
    padding-block-start: .7rem;
    padding-inline-start: 2.25rem;
}

.home-cost-icon {
    position: absolute;
    inset-block-start: .7rem;
    inset-inline-start: 0;
    color: #9b4823;
}

.home-cost-icon svg {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
}

.home-cost-factors dt {
    font-weight: 750;
}

.home-cost-factors dd {
    margin: .15rem 0 0;
    color: var(--muted);
}

.home-cost-action {
    margin-top: auto;
}

.home-cost-action p {
    margin: 0 0 .7rem;
    color: var(--muted);
}

.home-cost-action .button {
    width: 100%;
}

@media (max-width: 820px) {
    .home-cost-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.home-brief-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    gap: clamp(1.25rem, 4vw, 4rem);
    align-items: start;
}

.home-brief-grid > div:first-child p {
    max-width: 42ch;
    color: var(--muted);
}

.home-brief-panel [hidden] {
    display: none;
}

.home-brief-panel [data-brief-fallback] {
    margin: 0;
}

.home-brief-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-brief-fields label {
    min-width: 0;
    font-weight: 650;
}

.home-brief-fields :is(input, select, textarea) {
    min-width: 0;
    font-weight: 400;
}

.home-brief-wide {
    grid-column: 1 / -1;
}

.home-brief-panel button[type="submit"] {
    justify-self: start;
}

.home-brief-review dl {
    margin: 0 0 1rem;
}

.home-brief-review dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: .3rem .85rem;
    padding-block: .6rem;
    border-top: 1px solid var(--line);
}

.home-brief-review dt {
    font-weight: 700;
}

.home-brief-review dd {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.home-brief-review .button.outline {
    color: var(--ink);
}

.home-brief-review .error {
    margin-top: .85rem;
}

@media (max-width: 850px) {
    .home-brief-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 540px) {
    .home-brief-fields,
    .home-brief-review dl > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-brief-panel .button {
        width: 100%;
    }
}

.home-company-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(.8rem, 1.75vw, 1.35rem);
    margin-top: clamp(1rem, 2.5vw, 1.8rem);
}

.home-company-grid > div {
    min-width: 0;
}

.home-company-profile p,
.home-company-documents dd {
    color: var(--muted);
}

.home-company-profile h4 {
    margin: 1.25rem 0 .45rem;
    font-size: 1rem;
}

.home-company-grid dl {
    display: grid;
    gap: .8rem;
    margin: 0;
}

.home-company-grid dl > div {
    border-top: 1px solid var(--line);
    padding-top: .7rem;
}

.home-company-grid dt {
    font-weight: 750;
}

.home-company-grid dd {
    margin: .2rem 0 0;
    overflow-wrap: anywhere;
}

.home-company-profile .home-company-requisites {
    margin-bottom: 1.1rem;
}

.home-company-documents dl > div {
    position: relative;
    padding-inline-start: 2.25rem;
}

.home-company-icon {
    position: absolute;
    inset-block-start: .7rem;
    inset-inline-start: 0;
    color: #9b4823;
}

.home-company-icon svg {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
}

@media (max-width: 720px) {
    .home-company-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 640px) and (max-height: 520px) and (pointer: coarse) {
    .home-hero {
        padding-block: 1rem;
    }

    .home-hero .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 1rem;
    }

    .home-hero .eyebrow {
        margin-bottom: .5rem;
    }

    .home-hero h1 {
        font-size: clamp(1.6rem, 7.4cqi, 3rem);
        margin-bottom: .65rem;
    }

    .home-hero .hero-intro {
        font-size: 1rem;
    }

    .home-hero .hero-intro p {
        margin-bottom: .65rem;
    }

    .home-hero .actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero .actions .button {
        padding: .45rem;
        font-size: .875rem;
        line-height: 1.2;
    }
}

.home-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.8rem, 1.75vw, 1.35rem);
    margin-top: clamp(1rem, 2.5vw, 1.8rem);
}

.home-case-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.home-case-photo {
    aspect-ratio: 16 / 10;
    background: #e7ebe8;
}

.home-case-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-case-copy {
    padding: clamp(1rem, 2vw, 1.65rem);
}

.home-case-location {
    margin-bottom: .5rem;
    color: var(--muted);
}

.home-case-copy h3 {
    font-size: clamp(1.3rem, 2vw, 1.85rem);
    text-wrap: balance;
}

.home-case-copy h3 a {
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.home-case-copy .case-facts {
    display: grid;
    gap: .65rem;
    margin: 1rem 0 0;
}

.home-case-copy .case-facts > div {
    padding-top: .6rem;
    border-top: 1px solid var(--line);
}

.home-case-copy .case-facts dt {
    font-weight: 750;
}

.home-case-copy .case-facts dd {
    margin: .2rem 0 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .home-cases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .home-cases-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.home-featured-case-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(1rem, 3vw, 2.5rem);
    margin-top: clamp(1rem, 2.5vw, 1.8rem);
    padding: clamp(1rem, 2.4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.home-featured-case-media {
    overflow: hidden;
    border-radius: 3px;
    background: #e7ebe8;
}

.home-featured-case-media img {
    display: block;
    width: 100%;
    height: auto;
}

.home-featured-case-copy {
    min-width: 0;
}

.home-featured-case-copy .case-facts {
    display: grid;
    gap: .7rem;
    margin: 1rem 0 1.1rem;
}

.home-featured-case-copy .case-facts > div {
    padding-top: .6rem;
    border-top: 1px solid var(--line);
}

.home-featured-case-copy .case-facts dt {
    font-weight: 750;
}

.home-featured-case-copy .case-facts dd {
    margin: .2rem 0 0;
    color: var(--muted);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .home-featured-case-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

.home-layers {
    background: #eef1f1;
}

.home-layer-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.home-layer-picker label {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: .45rem .3rem;
    border: 1px solid #a6b2af;
    border-radius: 4px;
    background: #f7f8f6;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
}

.home-layer-picker input:checked + label {
    border-color: #18232d;
    background: #18232d;
    color: #f7f7f1;
}

.home-layer-picker input:focus-visible + label {
    outline: 3px solid #a64a23;
    outline-offset: 2px;
}

.home-layers-layout {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(.7rem, 2vw, 1.5rem);
    margin-top: .35rem;
}

.home-layers-diagram {
    display: grid;
    align-items: center;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    background: radial-gradient(ellipse at 54% 60%, #34444d, #1b282f 75%);
}

.home-layers-diagram svg {
    display: block;
    width: 100%;
    height: auto;
}

.home-layers-diagram .scene-part {
    opacity: .22;
}

.home-layers-diagram .scene-nodes,
.home-layer-description {
    display: none;
}

#building-layer-frame:checked ~ .home-layers-layout .scene-frame,
#building-layer-walls:checked ~ .home-layers-layout .scene-walls,
#building-layer-roof:checked ~ .home-layers-layout .scene-roof {
    opacity: 1;
}

#building-layer-nodes:checked ~ .home-layers-layout .scene-part {
    opacity: .55;
}

#building-layer-nodes:checked ~ .home-layers-layout .scene-nodes,
#building-layer-frame:checked ~ .home-layers-layout #building-detail-frame,
#building-layer-walls:checked ~ .home-layers-layout #building-detail-walls,
#building-layer-roof:checked ~ .home-layers-layout #building-detail-roof,
#building-layer-nodes:checked ~ .home-layers-layout #building-detail-nodes {
    display: block;
}

.home-layer-description p {
    color: var(--muted);
}

@media (max-width: 720px) {
    .home-layers-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 390px) {
    .home-layer-picker {
        gap: .3rem;
    }

    .home-layer-picker label {
        font-size: .9rem;
    }

    .home-layer-description .button {
        width: 100%;
    }
}
