.hn-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1rem;
}

.hn-gallery-card {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.hn-gallery-card__visual {
    aspect-ratio: 16 / 9;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
    background: #e8ecef;
}

.hn-gallery-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hn-gallery-card h3 {
    margin: 0 0 .6rem;
}

.hn-gallery-card p {
    margin: .45rem 0;
}

/* Project Examples share one branded technical presentation everywhere. */
.hn-gallery-section--technical {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 3rem) 1rem;
    background:
        linear-gradient(90deg, rgba(3, 8, 14, .98), rgba(4, 10, 17, .92) 52%, rgba(2, 6, 11, .98)),
        #03080e;
    color: #fff;
}

.hn-home .hn-section.hn-gallery-section--technical {
    padding: 2rem 1rem;
}

.hn-gallery-section--technical::before,
.hn-gallery-section--technical::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.hn-gallery-section--technical::before {
    background:
        linear-gradient(rgba(93, 117, 140, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 117, 140, .08) 1px, transparent 1px),
        repeating-linear-gradient(0deg, transparent 0 79px, rgba(93, 117, 140, .035) 79px 80px),
        repeating-linear-gradient(90deg, transparent 0 79px, rgba(93, 117, 140, .035) 79px 80px);
    background-size: 20px 20px, 20px 20px, 80px 80px, 80px 80px;
    opacity: .48;
}

.hn-gallery-section--technical::after {
    z-index: -1;
    background:
        radial-gradient(circle at 8% 16%, rgba(255, 193, 7, .08), transparent 22rem),
        radial-gradient(circle at 94% 55%, rgba(114, 143, 169, .1), transparent 25rem),
        linear-gradient(115deg, transparent 0 77%, rgba(255, 255, 255, .025) 77% 78%, transparent 78%);
}

.hn-gallery-section--technical .hn-section__inner {
    position: relative;
    isolation: isolate;
    width: min(1540px, calc(100% - 1rem));
    padding: 3.25rem clamp(2rem, 5vw, 5.5rem) 2.6rem;
    border: 1px solid rgba(153, 171, 188, .48);
    background:
        radial-gradient(circle at 50% 22%, rgba(20, 36, 51, .56), transparent 34rem),
        linear-gradient(150deg, rgba(5, 12, 20, .94), rgba(2, 7, 12, .98));
    clip-path: polygon(12% 0, calc(100% - 3rem) 0, 100% 3rem, 100% calc(100% - 3rem), calc(100% - 3rem) 100%, 3rem 100%, 0 calc(100% - 3rem), 0 8rem);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, .38), 0 30px 80px rgba(0, 0, 0, .42);
}

.hn-home .hn-gallery-section--technical .hn-section__inner {
    width: min(1540px, calc(100% - 1rem));
}

.hn-gallery-section--technical .hn-section__inner::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -.25rem;
    left: 12%;
    width: 2px;
    height: 23rem;
    background: linear-gradient(transparent, #ffc107 20%, #f79a1e 72%, transparent);
    box-shadow: 0 0 7px #ffc107, 0 0 24px rgba(255, 193, 7, .72);
    transform: rotate(27deg);
    transform-origin: top;
}

.hn-gallery-section--technical .hn-section-intro {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.hn-home .hn-gallery-section--technical .hn-section-intro {
    margin-bottom: 1.75rem;
}

.hn-gallery-section--technical .hn-section-intro h2 {
    margin: 0;
    color: #f6f7f8;
    font-size: 4rem;
    line-height: 1.02;
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .45);
}

.hn-gallery-section--technical .hn-section-intro h2 span {
    color: #ffc107;
    text-shadow: 0 0 24px rgba(255, 193, 7, .12);
}

.hn-gallery-section--technical .hn-section-intro p {
    max-width: 720px;
    margin: .85rem auto 0;
    color: rgba(226, 231, 236, .82);
    font-size: 1.1rem;
    line-height: 1.5;
}

.hn-gallery-section--technical .hn-section-intro::after {
    content: "";
    display: block;
    width: 220px;
    height: 10px;
    margin: .55rem auto 0;
    background:
        linear-gradient(90deg, transparent 0 5%, rgba(255, 193, 7, .85) 5% 45%, transparent 45% 55%, rgba(255, 193, 7, .85) 55% 95%, transparent 95%);
    clip-path: polygon(0 42%, 46% 42%, 50% 100%, 54% 42%, 100% 42%, 100% 58%, 55% 58%, 50% 100%, 45% 58%, 0 58%);
}

.hn-gallery-section--technical .hn-gallery-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(1180px, 100%);
    margin-inline: auto;
    gap: 1.2rem;
}

.hn-gallery-section--technical .hn-gallery-grid--count-4,
.hn-gallery-section--technical .hn-gallery-grid--count-8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(1280px, 100%);
}

.hn-gallery-section--technical .hn-gallery-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(1180px, 100%);
}

.hn-gallery-section--technical .hn-gallery-card,
.hn-gallery-section--technical .hn-gallery-card--feature {
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(255, 193, 7, .36);
    border-radius: 0;
    background: #070d13;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .3);
    clip-path: polygon(1rem 0, calc(100% - 1rem) 0, 100% 1rem, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 1rem 100%, 0 calc(100% - 1rem), 0 1rem);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hn-gallery-section--technical .hn-gallery-card--feature {
    grid-column: span 1;
}

.hn-gallery-section--technical .hn-gallery-card:hover,
.hn-gallery-section--technical .hn-gallery-card:focus-within {
    border-color: rgba(255, 193, 7, .9);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .45), 0 0 24px rgba(247, 154, 30, .1);
    transform: translateY(-4px);
}

.hn-gallery-section--technical .hn-gallery-card__link {
    display: grid;
    grid-template-rows: 160px 52px;
    height: 212px;
    min-height: 212px;
    color: inherit;
    text-decoration: none;
}

.hn-gallery-section--technical .hn-gallery-card__link::after {
    display: none;
}

.hn-gallery-section--technical .hn-gallery-card__visual {
    width: 100%;
    height: 160px;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: #111a23;
}

.hn-gallery-section--technical .hn-gallery-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .22s ease;
}

.hn-gallery-section--technical .hn-gallery-grid--count-2 .hn-gallery-card__link {
    grid-template-rows: clamp(210px, 24vw, 270px) 58px;
    height: auto;
    min-height: 0;
}

.hn-gallery-section--technical .hn-gallery-grid--count-2 .hn-gallery-card__visual {
    height: clamp(210px, 24vw, 270px);
}

.hn-gallery-section--technical .hn-gallery-card:hover .hn-gallery-card__visual img,
.hn-gallery-section--technical .hn-gallery-card:focus-within .hn-gallery-card__visual img {
    transform: scale(1.045);
}

.hn-gallery-section--technical .hn-gallery-card__caption {
    position: static;
    z-index: 1;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    gap: .75rem;
    align-items: center;
    height: 52px;
    padding: .55rem .9rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .055), transparent 55%),
        #080d12;
}

.hn-gallery-section--technical .hn-gallery-card h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #f7f8fa;
    font-size: 1rem;
    line-height: 1.05;
    text-shadow: none;
}

.hn-gallery-section--technical .hn-gallery-card__fastener,
.hn-gallery-section--technical .hn-gallery-card__arrow {
    display: block;
    width: 100%;
    height: auto;
}

.hn-gallery-section--technical .hn-gallery-card__arrow {
    transition: transform .18s ease;
}

.hn-gallery-section--technical .hn-gallery-card:hover .hn-gallery-card__arrow,
.hn-gallery-section--technical .hn-gallery-card:focus-within .hn-gallery-card__arrow {
    transform: translateX(3px);
}

.hn-gallery-section--technical .hn-section-link {
    position: relative;
    z-index: 1;
    margin: 1.6rem 0 0;
    text-align: center;
}

.hn-gallery-section--technical .hn-section-link a {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    padding-bottom: .35rem;
    border-bottom: 2px solid rgba(255, 193, 7, .72);
    color: #ffc107;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.hn-gallery-section--technical .hn-section-link a::after {
    display: none;
}

.hn-gallery-section--technical .hn-section-link img {
    width: 18px;
    height: 18px;
    transition: transform .18s ease;
}

.hn-gallery-section--technical .hn-section-link a:hover img,
.hn-gallery-section--technical .hn-section-link a:focus-visible img {
    transform: translateX(4px);
}

.hn-gallery-section--repair-examples {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #f7f8fa;
    background:
        radial-gradient(circle at 86% 14%, rgba(255, 193, 7, .1), transparent 22rem),
        linear-gradient(180deg, #05090f, #020506);
}

.hn-gallery-section--repair-examples::before,
.hn-gallery-section--repair-examples::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
}

.hn-gallery-section--repair-examples::before {
    opacity: .32;
    background:
        linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 68px 68px;
}

.hn-gallery-section--repair-examples::after {
    top: auto;
    right: -9rem;
    bottom: -5rem;
    left: auto;
    width: clamp(22rem, 38vw, 38rem);
    height: clamp(14rem, 24vw, 24rem);
    background:
        linear-gradient(135deg, rgba(255, 193, 7, .12), transparent 62%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 4rem);
    clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}

.hn-gallery-section--repair-examples .hn-section__inner,
.hn-repair-examples .hn-section__inner {
    width: min(1240px, 100%);
}

.hn-gallery-section--repair-examples .hn-section-intro {
    display: grid;
    max-width: 900px;
    gap: .95rem;
    margin: 0 0 clamp(2.5rem, 4vw, 3.75rem);
}

.hn-gallery-section--repair-examples .hn-section-intro h2,
.hn-repair-examples .hn-section-intro h2,
.hn-photo-limits__copy h2 {
    margin: 0;
    color: #f7f8fa;
    font-size: clamp(2.8rem, 4.6vw, 4.55rem);
    line-height: 1.02;
    text-wrap: balance;
}

.hn-gallery-section--repair-examples .hn-section-intro p:not(.hn-section-label),
.hn-repair-examples .hn-section-intro p:not(.hn-section-label),
.hn-photo-limits__copy p {
    max-width: 780px;
    margin: 0;
    color: rgba(247, 248, 250, .72);
    line-height: 1.68;
}

.hn-gallery-section--repair-examples .hn-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hn-gallery-section--repair-examples .hn-gallery-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 193, 7, .32);
    border-radius: 0;
    background: #070d13;
    clip-path: polygon(1rem 0, calc(100% - 1rem) 0, 100% 1rem, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 1rem 100%, 0 calc(100% - 1rem), 0 1rem);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .34);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hn-gallery-section--repair-examples .hn-gallery-card:hover,
.hn-gallery-section--repair-examples .hn-gallery-card:focus-within {
    border-color: rgba(255, 193, 7, .88);
    box-shadow: 0 26px 54px rgba(0, 0, 0, .48), 0 0 28px rgba(255, 193, 7, .1);
    transform: translateY(-4px);
}

.hn-gallery-section--repair-examples .hn-gallery-card__link {
    display: grid;
    height: 100%;
    min-height: 420px;
    grid-template-rows: 190px minmax(0, 1fr);
    color: inherit;
    text-decoration: none;
}

.hn-gallery-section--repair-examples .hn-gallery-card__visual {
    position: relative;
    height: 190px;
    margin: 0;
    border-radius: 0;
    background: #111a23;
}

.hn-gallery-section--repair-examples .hn-gallery-card__visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, transparent 0 70%, rgba(255, 193, 7, .18) 70.2% 70.6%, transparent 70.8%),
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
    opacity: 0;
    transition: opacity .18s ease;
}

.hn-gallery-section--repair-examples .hn-gallery-card:hover .hn-gallery-card__visual::after,
.hn-gallery-section--repair-examples .hn-gallery-card:focus-within .hn-gallery-card__visual::after {
    opacity: .52;
}

.hn-gallery-section--repair-examples .hn-gallery-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.8) contrast(1.08);
    transition: transform .22s ease, filter .22s ease;
}

.hn-gallery-section--repair-examples .hn-gallery-card:hover .hn-gallery-card__visual img,
.hn-gallery-section--repair-examples .hn-gallery-card:focus-within .hn-gallery-card__visual img {
    filter: brightness(.92) contrast(1.1);
    transform: scale(1.045);
}

.hn-gallery-section--repair-examples .hn-gallery-card__caption {
    display: grid;
    align-content: start;
    gap: .8rem;
    min-height: 230px;
    padding: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .055), transparent 55%),
        #080d12;
}

.hn-gallery-section--repair-examples .hn-gallery-card__badge {
    width: max-content;
    max-width: 100%;
    color: #ffc107;
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.hn-gallery-section--repair-examples .hn-gallery-card h3 {
    margin: 0;
    color: #f7f8fa;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.04;
}

.hn-gallery-section--repair-examples .hn-gallery-card p {
    margin: 0;
    color: rgba(247, 248, 250, .7);
    line-height: 1.52;
}

.hn-gallery-section--repair-examples .hn-gallery-card__cta {
    align-self: end;
    color: #ffc107;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

.hn-repair-examples {
    position: relative;
    overflow: hidden;
    color: #f7f8fa;
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 193, 7, .08), transparent 22rem),
        linear-gradient(180deg, #03070b, #070b10);
}

.hn-repair-examples--photo-guide {
    background:
        linear-gradient(118deg, transparent 0 62%, rgba(255, 193, 7, .08) 62.2% 62.6%, transparent 62.8%),
        linear-gradient(180deg, #060907, #020507);
}

.hn-example-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 193, 7, .32);
    border-radius: 8px;
    background:
        linear-gradient(100deg, rgba(255, 193, 7, .07), transparent 30%),
        rgba(255, 255, 255, .026);
}

.hn-example-proof-grid article {
    position: relative;
    min-height: 290px;
    padding: 1.5rem;
}

.hn-example-proof-grid article + article {
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.hn-example-proof-grid article > span {
    position: absolute;
    right: 1.2rem;
    bottom: .6rem;
    color: rgba(255, 255, 255, .055);
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}

.hn-example-proof-grid h3,
.hn-photo-guide h3 {
    margin: 0 0 .75rem;
    color: #f7f8fa;
    font-size: 1.55rem;
}

.hn-example-proof-grid p,
.hn-photo-guide p {
    margin: 0;
    color: rgba(247, 248, 250, .72);
    line-height: 1.58;
}

.hn-photo-guide {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
    padding: 0;
    list-style: none;
}

.hn-photo-guide::before {
    position: absolute;
    top: 37px;
    right: 4%;
    left: 4%;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, rgba(255, 193, 7, .15), #ffc107, rgba(255, 193, 7, .15));
}

.hn-photo-guide li {
    position: relative;
    min-height: 250px;
    padding: 5.1rem 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: rgba(255, 255, 255, .028);
}

.hn-photo-guide li > span {
    position: absolute;
    top: 12px;
    left: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #ffc107;
    border-radius: 50%;
    background: #05090f;
    color: #ffc107;
    font-family: var(--font-heading);
    transform: translateX(-50%);
}

.hn-repair-examples--photo-limits .hn-section__inner {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hn-photo-limits__visual {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 193, 7, .36);
    border-radius: 8px;
}

.hn-photo-limits__visual::before {
    position: absolute;
    z-index: 1;
    inset: 1.3rem;
    content: "";
    border: 1px solid rgba(255, 193, 7, .72);
    box-shadow: 0 0 22px rgba(255, 193, 7, .14);
    pointer-events: none;
}

.hn-photo-limits__visual img {
    width: 100%;
    min-height: 470px;
    object-fit: cover;
    filter: brightness(.78) contrast(1.1);
}

.hn-photo-limits__copy {
    display: grid;
    gap: 1rem;
}

.hn-before-after-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 7vw, 6.75rem) 1.5rem;
    color: #f8fafc;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 193, 7, .1), transparent 24rem),
        linear-gradient(135deg, #06101b, #020508);
}

.hn-before-after-section::before,
.hn-before-after-section::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.hn-before-after-section::before {
    opacity: .28;
    background:
        linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 86px 86px;
}

.hn-before-after-section::after {
    background:
        linear-gradient(128deg, transparent 0 48%, rgba(255, 193, 7, .26) 48.2% 48.45%, transparent 48.7%) 100% 0 / 420px 100% no-repeat;
    opacity: .5;
}

.hn-before-after-section .hn-section__inner {
    position: relative;
    z-index: 1;
    width: min(1320px, 100%);
}

.hn-before-after-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: stretch;
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 48% 110%, rgba(255, 193, 7, .11), transparent 16rem),
        rgba(255, 255, 255, .035);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
}

.hn-before-after-compare {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: #080d13;
    isolation: isolate;
}

.hn-before-after-visual,
.hn-before-after-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hn-before-after-visual img {
    object-fit: cover;
}

.hn-before-after-visual--after {
    z-index: 1;
}

.hn-before-after-visual--before {
    z-index: 2;
    clip-path: polygon(0 0, var(--position, 50%) 0, var(--position, 50%) 100%, 0 100%);
}

.hn-before-after-tag {
    position: absolute;
    z-index: 4;
    top: 1rem;
    padding: .42rem .7rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hn-before-after-tag--before {
    left: 1rem;
    color: #f8fafc;
    background: rgba(7, 11, 15, .78);
}

.hn-before-after-tag--after {
    right: 1rem;
    color: #07101a;
    background: #ffc107;
}

.hn-before-after-divider {
    position: absolute;
    z-index: 5;
    top: 0;
    bottom: 0;
    left: var(--position, 50%);
    width: 3px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 0 22px rgba(0, 0, 0, .45);
    transform: translateX(-50%);
    pointer-events: none;
}

.hn-before-after-divider b {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 193, 7, .82);
    border-radius: 50%;
    background: #05090f;
    color: #ffc107;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 24px rgba(255, 193, 7, .28);
}

.hn-before-after-divider b::before {
    content: "< >";
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: -.15em;
}

.hn-before-after-compare input[type="range"] {
    position: absolute;
    z-index: 6;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    appearance: none;
    background: transparent;
    opacity: 0;
    cursor: ew-resize;
}

.hn-before-after-compare input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
}

.hn-before-after-compare input[type="range"]::-webkit-slider-thumb {
    width: 48px;
    height: 100%;
    appearance: none;
    background: transparent;
    border: 0;
}

.hn-before-after-compare input[type="range"]::-moz-range-track {
    background: transparent;
    border: 0;
}

.hn-before-after-compare input[type="range"]::-moz-range-thumb {
    width: 48px;
    height: 100%;
    background: transparent;
    border: 0;
}

.hn-before-after-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(.5rem, 1.5vw, 1.25rem);
}

.hn-before-after-details .hn-section-label {
    color: #ffc107;
}

.hn-before-after-details h2 {
    margin: .35rem 0 1rem;
    color: #f8fafc;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: .96;
    text-transform: uppercase;
}

.hn-before-after-details h2 span {
    color: #ffc107;
}

.hn-before-after-details dl {
    display: grid;
    gap: .8rem;
    margin: 0 0 1.1rem;
}

.hn-before-after-details dl > div {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: .75rem 1rem;
    padding: .85rem 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.hn-before-after-details dt {
    display: contents;
    color: #ffc107;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
}

.hn-before-after-details dt img {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    padding: .45rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
}

.hn-before-after-details dd {
    margin: 0;
    color: rgba(248, 250, 252, .72);
    line-height: 1.48;
}

.hn-before-after-details .hn-button {
    justify-content: center;
    margin-top: auto;
}

.hn-before-after-related {
    display: inline-flex;
    gap: .75rem;
    align-items: center;
    margin-top: 1rem;
    color: #ffc107;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.hn-before-after-proof {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.hn-before-after-proof span {
    display: flex;
    gap: .75rem;
    align-items: center;
    color: rgba(248, 250, 252, .82);
    font-family: var(--font-heading);
    font-weight: 800;
}

.hn-before-after-proof img {
    width: 32px;
    height: 32px;
}

@media (max-width: 1000px) {
    .hn-gallery-section--technical .hn-section__inner {
        padding: 3rem 2rem 2.5rem;
        clip-path: polygon(5rem 0, calc(100% - 2rem) 0, 100% 2rem, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 2rem 100%, 0 calc(100% - 2rem), 0 5rem);
    }

    .hn-gallery-section--technical .hn-section-intro h2 {
        font-size: 3.35rem;
    }

    .hn-gallery-section--technical .hn-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hn-gallery-section--technical .hn-gallery-grid--count-4,
    .hn-gallery-section--technical .hn-gallery-grid--count-8 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hn-gallery-section--repair-examples .hn-gallery-grid,
    .hn-example-proof-grid,
    .hn-photo-guide,
    .hn-repair-examples--photo-limits .hn-section__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hn-example-proof-grid article:nth-child(odd) {
        border-left: 0;
    }

    .hn-example-proof-grid article:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .hn-before-after-shell,
    .hn-before-after-proof {
        grid-template-columns: 1fr;
    }

    .hn-before-after-compare {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    .hn-gallery-section--technical {
        padding: .5rem;
    }

    .hn-home .hn-section.hn-gallery-section--technical {
        padding: .5rem;
    }

    .hn-gallery-section--technical .hn-section__inner {
        width: 100%;
        padding: 3rem .9rem 2.5rem;
        clip-path: none;
    }

    .hn-gallery-section--technical .hn-section__inner::before {
        left: 2rem;
        height: 13rem;
        opacity: .6;
    }

    .hn-gallery-section--technical .hn-section-intro {
        margin-bottom: 1.75rem;
    }

    .hn-gallery-section--technical .hn-section-intro h2 {
        font-size: 2.7rem;
    }

    .hn-gallery-section--technical .hn-section-intro p {
        font-size: 1rem;
    }

    .hn-gallery-section--technical .hn-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hn-gallery-section--technical .hn-gallery-grid--count-4,
    .hn-gallery-section--technical .hn-gallery-grid--count-8 {
        grid-template-columns: 1fr;
    }

    .hn-gallery-section--technical .hn-gallery-grid--count-2 {
        grid-template-columns: 1fr;
    }

    .hn-gallery-section--technical .hn-gallery-card__link {
        grid-template-rows: 168px 52px;
        height: 220px;
        min-height: 220px;
    }

    .hn-gallery-section--technical .hn-gallery-card__visual {
        height: 168px;
    }

    .hn-gallery-section--technical .hn-gallery-grid--count-2 .hn-gallery-card__link {
        grid-template-rows: 168px 52px;
        height: 220px;
        min-height: 220px;
    }

    .hn-gallery-section--technical .hn-gallery-grid--count-2 .hn-gallery-card__visual {
        height: 168px;
    }

    .hn-gallery-section--repair-examples .hn-gallery-grid,
    .hn-example-proof-grid,
    .hn-photo-guide,
    .hn-repair-examples--photo-limits .hn-section__inner {
        grid-template-columns: 1fr;
    }

    .hn-gallery-section--repair-examples .hn-gallery-card__link {
        min-height: 0;
    }

    .hn-example-proof-grid article + article {
        border-top: 1px solid rgba(255, 255, 255, .12);
        border-left: 0;
    }

    .hn-photo-guide::before {
        top: 0;
        bottom: 0;
        left: 24px;
        width: 2px;
        height: auto;
        background: linear-gradient(rgba(255, 193, 7, .15), #ffc107, rgba(255, 193, 7, .15));
    }

    .hn-photo-guide li {
        min-height: 0;
        padding: 1.15rem 1.15rem 1.15rem 5.25rem;
    }

    .hn-photo-guide li > span {
        top: 1.15rem;
        left: 0;
        transform: none;
    }

    .hn-photo-limits__visual img {
        min-height: 340px;
    }

    .hn-before-after-section {
        padding-inline: 1rem;
    }

    .hn-before-after-shell {
        padding: .75rem;
    }

    .hn-before-after-compare {
        min-height: 330px;
    }

    .hn-before-after-tag {
        top: .65rem;
        padding: .34rem .48rem;
        font-size: .68rem;
        letter-spacing: .04em;
    }

    .hn-before-after-tag--before {
        left: .65rem;
    }

    .hn-before-after-tag--after {
        right: .65rem;
    }

    .hn-before-after-details dl > div {
        grid-template-columns: 42px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hn-gallery-section--technical .hn-gallery-card,
    .hn-gallery-section--technical .hn-gallery-card__visual img,
    .hn-gallery-section--technical .hn-gallery-card__arrow,
    .hn-gallery-section--technical .hn-section-link img,
    .hn-gallery-section--repair-examples .hn-gallery-card,
    .hn-gallery-section--repair-examples .hn-gallery-card__visual img {
        transition: none;
    }
}
