/* HSC Nordic case — construction drawings, measured spacing, material palette. */
.hn-case {
    --hn-ink: #171918;
    --hn-carbon: #202321;
    --hn-concrete: #e4e5e1;
    --hn-paper: #f7f7f4;
    --hn-white: #fff;
    --hn-steel: #777d78;
    --hn-line: rgba(23, 25, 24, 0.18);
    --hn-light-line: rgba(255, 255, 255, 0.2);
    --hn-amber: #b87942;
    --hn-display: "Archivo", "Inter", sans-serif;
    --hn-mono: "IBM Plex Mono", monospace;
    color: var(--hn-ink);
    background: var(--hn-paper);
    font-family: var(--hn-display);
}

body:has(.hn-case) {
    background: var(--hn-paper);
    background-image: none;
}

.hn-case a:focus-visible,
.hn-case summary:focus-visible {
    outline: 2px solid var(--hn-amber);
    outline-offset: 4px;
}

.hn-hero {
    position: relative;
    overflow: hidden;
    padding: 2.25rem 0 5rem;
    color: var(--hn-white);
    background-color: var(--hn-carbon);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hn-breadcrumb {
    position: relative;
    z-index: 2;
}

.hn-hero .hn-breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
}

.hn-hero .hn-breadcrumb a:hover,
.hn-hero .hn-breadcrumb span[aria-current="page"] {
    color: #fff;
}

.hn-hero .hn-breadcrumb i {
    color: rgba(255, 255, 255, 0.34);
}

.hn-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3.5rem;
    align-items: center;
    margin-top: 3.25rem;
}

@media (min-width: 1000px) {
    .hn-hero__grid {
        grid-template-columns: minmax(300px, 0.82fr) minmax(540px, 1.18fr);
        gap: clamp(3rem, 6vw, 6.5rem);
        min-height: 610px;
    }
}

.hn-brand {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.65rem;
    margin-bottom: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    font-family: var(--hn-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hn-kicker {
    margin: 0 0 0.85rem;
    color: var(--hn-amber);
    font-family: var(--hn-mono);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hn-h1 {
    max-width: 12ch;
    margin: 0 0 1.4rem;
    color: var(--hn-white);
    font-size: clamp(2.45rem, 5vw, 5.4rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hn-context {
    margin: 0 0 0.8rem;
    color: #d8b18e;
    font-family: var(--hn-mono);
    font-size: 0.78rem;
}

.hn-lead {
    max-width: 57ch;
    margin: 0 0 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.98rem;
    line-height: 1.72;
}

.hn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0.7rem 1.15rem;
    border: 1px solid transparent;
    font-family: var(--hn-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hn-btn--light {
    color: var(--hn-ink);
    background: var(--hn-white);
}

.hn-btn--light:hover {
    color: var(--hn-white);
    background: var(--hn-amber);
}

.hn-btn--ghost {
    color: var(--hn-white);
    border-color: rgba(255, 255, 255, 0.38);
}

.hn-btn--ghost:hover {
    color: var(--hn-white);
    border-color: var(--hn-white);
    background: rgba(255, 255, 255, 0.07);
}

.hn-elevation {
    position: relative;
    margin: 2rem 0 0 1.2rem;
    padding: 1.2rem 0 0 1.2rem;
}

.hn-elevation__frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: #0c0d0c;
    box-shadow: 28px 32px 0 rgba(0, 0, 0, 0.2);
}

.hn-elevation__frame::before,
.hn-elevation__frame::after {
    content: "";
    position: absolute;
    z-index: 2;
    width: 26px;
    height: 26px;
    pointer-events: none;
}

.hn-elevation__frame::before {
    top: 10px;
    left: 10px;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
}

.hn-elevation__frame::after {
    right: 10px;
    bottom: 10px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.hn-elevation img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.hn-elevation figcaption {
    margin-top: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--hn-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hn-elevation__measure {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.48);
    font-family: var(--hn-mono);
    font-size: 0.55rem;
}

.hn-elevation__measure i {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.28);
}

.hn-elevation__measure i::before,
.hn-elevation__measure i::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
}

.hn-elevation__measure--top {
    top: 0;
    left: 1.2rem;
    right: 0;
}

.hn-elevation__measure--top i {
    flex: 1;
    height: 1px;
}

.hn-elevation__measure--top i::before,
.hn-elevation__measure--top i::after {
    top: -3px;
    width: 1px;
    height: 7px;
}

.hn-elevation__measure--top i::before { left: 0; }
.hn-elevation__measure--top i::after { right: 0; }

.hn-elevation__measure--side {
    top: 1.2rem;
    bottom: 2rem;
    left: 0;
    flex-direction: column;
}

.hn-elevation__measure--side i {
    flex: 1;
    width: 1px;
}

.hn-elevation__measure--side i::before,
.hn-elevation__measure--side i::after {
    left: -3px;
    width: 7px;
    height: 1px;
}

.hn-elevation__measure--side i::before { top: 0; }
.hn-elevation__measure--side i::after { bottom: 0; }

.hn-section {
    padding: 4rem 0;
}

@media (min-width: 960px) {
    .hn-section {
        padding: 6rem 0;
    }
}

.hn-section--white {
    background: var(--hn-white);
}

.hn-section--plan {
    border-top: 1px solid var(--hn-line);
    border-bottom: 1px solid var(--hn-line);
    background-color: var(--hn-concrete);
    background-image:
        linear-gradient(rgba(23, 25, 24, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 25, 24, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}

.hn-h2 {
    max-width: 22ch;
    margin: 0 0 1rem;
    color: var(--hn-ink);
    font-size: clamp(2rem, 4.3vw, 4.25rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hn-body {
    max-width: 67ch;
    margin: 0;
    color: #5d625e;
    font-size: 1rem;
    line-height: 1.75;
}

.hn-brief {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 920px) {
    .hn-brief {
        grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
        gap: 5rem;
        align-items: end;
    }
}

.hn-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--hn-ink);
    border-left: 1px solid var(--hn-ink);
}

.hn-fact {
    min-height: 132px;
    padding: 1.1rem;
    border-right: 1px solid var(--hn-ink);
    border-bottom: 1px solid var(--hn-ink);
}

.hn-fact strong {
    display: block;
    margin-bottom: 1.5rem;
    font-family: var(--hn-mono);
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    font-weight: 400;
    line-height: 1;
}

.hn-fact span {
    display: block;
    max-width: 17ch;
    color: var(--hn-steel);
    font-size: 0.76rem;
    line-height: 1.4;
}

.hn-heading-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 900px) {
    .hn-heading-row {
        grid-template-columns: 1fr 0.7fr;
        gap: 5rem;
        align-items: end;
    }
}

.hn-flow {
    border-top: 1px solid var(--hn-ink);
    border-left: 1px solid var(--hn-ink);
    background: rgba(255, 255, 255, 0.48);
}

.hn-flow__item {
    position: relative;
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0.85rem;
    min-height: 150px;
    padding: 1.25rem;
    border-right: 1px solid var(--hn-ink);
    border-bottom: 1px solid var(--hn-ink);
}

@media (min-width: 800px) {
    .hn-flow {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hn-flow__item {
        display: block;
        min-height: 245px;
        padding: 1.4rem;
    }

    .hn-flow__item:not(:last-child)::after {
        content: "";
        position: absolute;
        z-index: 2;
        top: 50%;
        right: -7px;
        width: 13px;
        height: 13px;
        border-top: 1px solid var(--hn-ink);
        border-right: 1px solid var(--hn-ink);
        background: var(--hn-concrete);
        transform: translateY(-50%) rotate(45deg);
    }
}

.hn-flow__index {
    display: block;
    margin-bottom: 2.8rem;
    color: var(--hn-amber);
    font-family: var(--hn-mono);
    font-size: 0.7rem;
}

.hn-flow h3,
.hn-scope h3,
.hn-performance h3 {
    margin: 0 0 0.65rem;
    color: var(--hn-ink);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
}

.hn-flow p,
.hn-scope p,
.hn-performance p {
    margin: 0;
    color: #616662;
    font-size: 0.88rem;
    line-height: 1.65;
}

.hn-scope {
    display: grid;
    margin-top: 3rem;
    border-top: 1px solid var(--hn-line);
    border-left: 1px solid var(--hn-line);
}

@media (min-width: 720px) {
    .hn-scope {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1060px) {
    .hn-scope {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hn-scope__item {
    min-height: 245px;
    padding: 1.35rem;
    border-right: 1px solid var(--hn-line);
    border-bottom: 1px solid var(--hn-line);
}

.hn-scope__code {
    display: block;
    margin-bottom: 3.2rem;
    color: var(--hn-amber);
    font-family: var(--hn-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.hn-pipeline {
    color: #fff;
    background-color: #151716;
    background-image: linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,0.035) 50%);
    background-size: 10% 100%;
}

.hn-pipeline .hn-h2 {
    color: #fff;
}

.hn-pipeline .hn-body {
    color: rgba(255, 255, 255, 0.62);
}

.hn-pipeline__intro {
    max-width: 780px;
}

.hn-pipeline__tracks {
    display: grid;
    gap: 1rem;
    margin-top: 3.5rem;
}

@media (min-width: 780px) {
    .hn-pipeline__tracks {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        border-top: 1px solid var(--hn-light-line);
        border-left: 1px solid var(--hn-light-line);
    }
}

.hn-pipeline__tracks article {
    position: relative;
    min-height: 190px;
    padding: 1.3rem;
    border: 1px solid var(--hn-light-line);
}

@media (min-width: 780px) {
    .hn-pipeline__tracks article {
        min-height: 235px;
        border-top: 0;
        border-left: 0;
    }
}

.hn-pipeline__number {
    display: block;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--hn-mono);
    font-size: 0.65rem;
}

.hn-pipeline__tracks strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #fff;
    font-family: var(--hn-mono);
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    font-weight: 400;
}

.hn-pipeline__tracks p {
    margin: 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.8rem;
}

.hn-pipeline__tracks i {
    position: absolute;
    z-index: 2;
    right: -13px;
    bottom: 44px;
    width: 26px;
    height: 1px;
    background: var(--hn-amber);
}

.hn-pipeline__tracks i::after {
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--hn-amber);
    border-right: 1px solid var(--hn-amber);
    transform: rotate(45deg);
}

.hn-performance {
    display: grid;
    gap: 3rem;
}

@media (min-width: 920px) {
    .hn-performance {
        grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1.15fr);
        gap: 6rem;
    }
}

.hn-performance__list {
    border-top: 1px solid var(--hn-line);
}

.hn-performance__list article {
    display: grid;
    grid-template-columns: 2.8rem 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--hn-line);
}

.hn-performance__list article > span {
    color: var(--hn-amber);
    font-family: var(--hn-mono);
    font-size: 0.68rem;
}

.hn-tech {
    border-top: 1px solid var(--hn-line);
    border-bottom: 1px solid var(--hn-line);
    background: var(--hn-concrete);
}

.hn-tech__tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    border-top: 1px solid var(--hn-ink);
    border-left: 1px solid var(--hn-ink);
}

.hn-tech__tags span {
    padding: 0.75rem 1rem;
    border-right: 1px solid var(--hn-ink);
    border-bottom: 1px solid var(--hn-ink);
    font-family: var(--hn-mono);
    font-size: 0.72rem;
}

.hn-cta {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 3px solid var(--hn-ink);
}

@media (min-width: 880px) {
    .hn-cta {
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 4rem;
    }
}

.hn-cta h3 {
    max-width: 25ch;
    margin: 0 0 0.7rem;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.hn-cta p {
    max-width: 66ch;
    margin: 0;
    color: #5b605c;
    line-height: 1.65;
}

.hn-btn--dark {
    color: #fff;
    background: var(--hn-ink);
}

.hn-btn--dark:hover {
    color: #fff;
    background: var(--hn-amber);
}

.hn-btn--paper {
    color: var(--hn-ink);
    border-color: rgba(23, 25, 24, 0.5);
}

.hn-btn--paper:hover {
    color: var(--hn-ink);
    border-color: var(--hn-ink);
    background: rgba(255, 255, 255, 0.45);
}

.hn-faq {
    max-width: 980px;
    margin-top: 2.5rem;
    border-top: 1px solid var(--hn-ink);
}

.hn-faq details {
    border-bottom: 1px solid var(--hn-line);
}

.hn-faq summary {
    display: grid;
    grid-template-columns: 2.8rem 1fr;
    gap: 1rem;
    padding: 1.35rem 2.5rem 1.35rem 0;
    cursor: pointer;
    list-style: none;
    color: var(--hn-ink);
    font-size: 1rem;
    font-weight: 600;
}

.hn-faq summary::-webkit-details-marker {
    display: none;
}

.hn-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    font-family: var(--hn-mono);
    font-weight: 400;
}

.hn-faq details[open] summary::after {
    content: "−";
}

.hn-faq summary {
    position: relative;
}

.hn-faq summary span {
    color: var(--hn-amber);
    font-family: var(--hn-mono);
    font-size: 0.68rem;
    font-weight: 400;
}

.hn-faq details > p {
    max-width: 70ch;
    margin: 0;
    padding: 0 2.5rem 1.5rem 3.8rem;
    color: #5d625e;
    line-height: 1.72;
}

.hn-related {
    background: var(--hn-paper);
}

.hn-related .lt-carousel {
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .hn-hero {
        padding-top: 1.5rem;
        padding-bottom: 4rem;
        background-size: 32px 32px;
    }

    .hn-hero__grid {
        margin-top: 2.25rem;
    }

    .hn-h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    .hn-actions,
    .hn-actions .hn-btn {
        width: 100%;
    }

    .hn-elevation {
        margin-left: 0.5rem;
        padding-left: 0.8rem;
    }

    .hn-elevation__measure--top {
        left: 0.8rem;
    }

    .hn-elevation__frame {
        box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.2);
    }

    .hn-section {
        padding: 3.5rem 0;
    }

    .hn-flow__index,
    .hn-scope__code {
        margin-bottom: 1.4rem;
    }

    .hn-scope__item {
        min-height: 0;
    }

    .hn-pipeline__tracks i {
        right: auto;
        bottom: -13px;
        left: 28px;
        width: 1px;
        height: 26px;
    }

    .hn-pipeline__tracks i::after {
        top: auto;
        right: -3px;
        bottom: 0;
        transform: rotate(135deg);
    }

    .hn-faq details > p {
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hn-case *,
    .hn-case *::before,
    .hn-case *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
