/* =========================================================
   HPP Nordic — complete rebuild
========================================================= */

:root {
    --green: #a9bd7d;
    --dark: #33452f;
    --cream: #fcfcfa;
    --ink: #273126;
    --line: rgba(39, 49, 38, 0.18);
    --white-line: rgba(255, 255, 255, 0.25);

    --display: "Instrument Serif", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;

    --container: 1380px;
    --text: 760px;
    --gutter: clamp(24px, 4vw, 72px);
    --section-y: clamp(88px, 9vw, 150px);
}


/* Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.55;
    text-align: left;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

a,
button {
    font: inherit;
}

a {
    color: inherit;
}


/* Shared layout */

.container,
.header-inner,
.footer-inner {
    width: min(100% - (2 * var(--gutter)), var(--container));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-y);
}

.section-light {
    background: var(--cream);
}

.section-dark {
    background: var(--dark);
    color: #fff;
}

.section-green {
    background: var(--green);
}

.section-heading {
    width: 100%;
    max-width: 1120px;
    margin: 0;
}

.section-heading .section-intro {
    max-width: var(--text);
    margin: 34px 0 0;
}

.product-heading-section {
    padding-bottom: clamp(64px, 7vw, 105px);
}


/* Typography */

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    text-align: left;
}

h1 {
    font-size: clamp(100px, 14vw, 230px);
    line-height: 0.86;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(50px, 6vw, 94px);
    line-height: 1.02;
    letter-spacing: 0.006em;
}

h3 {
    font-size: clamp(31px, 2.6vw, 43px);
    line-height: 1.02;
    letter-spacing: 0;
}

p {
    margin: 0;
    text-align: left;
}

.eyebrow {
    margin-bottom: 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-intro {
    font-size: clamp(18px, 1.4vw, 21px);
    line-height: 1.65;
}

.lead {
    max-width: 620px;
    margin-top: 32px;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.6;
}


/* Header */

.site-header {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    background: rgba(252, 252, 250, 0.86);
    border-bottom: 1px solid rgba(39, 49, 38, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: clamp(136px, 11vw, 158px);
    height: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    font-size: 14px;
    text-decoration: none;
    transition: opacity 180ms ease;
}

nav a:hover {
    opacity: 0.6;
}

.menu-button {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}


/* Buttons */

.btn {
    display: inline-block;
    padding: 15px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 180ms ease,
        opacity 180ms ease,
        background 180ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-glass {
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.23);
}

.btn-light {
    margin-top: 28px;
    background: var(--cream);
    color: var(--ink);
}


/* Hero */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 130px 0 80px;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.52) 0%,
            rgba(0, 0, 0, 0.24) 40%,
            rgba(0, 0, 0, 0) 74%
        ),
        url("assets/hero-3.png") 75% center / cover no-repeat;
    color: #fff;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 900px;
}

.hero-wordmark {
    width: min(660px, 58vw);
    margin-top: 0;
}

.hero-wordmark img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-wordmark + .lead {
    margin-top: 28px;
}

.hero .eyebrow,
.hero .lead,
.hero .text-link {
    color: #fff;
}

.actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 38px;
}

.text-link {
    font-size: 14px;
    text-decoration: none;
}


/* Split HPP section */

.split-section {
    min-height: 820px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(460px, 0.9fr);
    background: var(--green);
}

.split-media {
    min-height: 680px;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hpp-media {
    background-image: url("assets/green-pipe3.png");
}

.split-copy {
    display: flex;
    align-items: center;
    padding: clamp(76px, 8vw, 130px) var(--gutter);
}

.split-copy-inner {
    width: 100%;
    max-width: 620px;
}

.split-copy h2 {
    margin-bottom: 34px;
}

.split-copy p:not(.eyebrow) {
    max-width: 580px;
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.65;
}

.hpp-detail-link {
    display: inline-block;
    margin-top: 34px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    font-weight: 500;
}


/* How it works */

.steps-grid,
.results-grid,
.process-grid {
    display: grid;
    margin-top: 70px;
}

.steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.steps-grid article {
    min-height: 295px;
    padding: 34px;
    background: var(--cream);
}

.number {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.steps-grid h3 {
    margin: 56px 0 16px;
}

.steps-grid p {
    font-size: 16px;
    line-height: 1.65;
}

.fact-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) 1fr;
    gap: 34px;
    align-items: center;
    margin-top: 48px;
    padding: 30px 34px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.fact-row span {
    font-family: var(--display);
    font-size: clamp(52px, 6vw, 88px);
    line-height: 0.9;
}

.fact-row p {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.6;
}


/* Results */

.section-dark .section-intro {
    color: rgba(255, 255, 255, 0.84);
}

.results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.results-grid article {
    padding: 28px;
    border: 1px solid var(--white-line);
}

.results-grid span,
.results-grid small {
    display: block;
}

.results-grid strong {
    display: block;
    margin: 36px 0 8px;
    font-family: var(--display);
    font-size: clamp(46px, 4vw, 64px);
    font-weight: 400;
    line-height: 1;
}

.results-note {
    max-width: var(--text);
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.6;
}


/* Commercial narrative */

.industry-section {
    padding-bottom: clamp(70px, 7vw, 110px);
}

.market-section {
    background: #f2f3ec;
}

.compact-heading {
    max-width: 920px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 64px;
    border: 1px solid var(--line);
    background: var(--line);
}

.market-grid article {
    min-height: 250px;
    padding: 34px;
    background: #f2f3ec;
}

.market-label {
    display: block;
    margin-bottom: 42px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.market-grid p {
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-family: var(--display);
    font-size: clamp(27px, 2.3vw, 36px);
    line-height: 1.12;
}

.market-grid p + p {
    margin-top: 4px;
}

.challenge-section {
    min-height: 66vh;
    display: flex;
    align-items: center;
    background: var(--cream);
}

.challenge-section h2 {
    max-width: 1080px;
}

.business-section {
    background: #eef1e7;
}

.business-section .section-heading {
    max-width: 1160px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 70px;
    border: 1px solid var(--line);
    background: var(--line);
}

.benefits-grid article {
    min-height: 300px;
    padding: 32px;
    background: #eef1e7;
}

.benefits-grid h3 {
    margin: 54px 0 18px;
}

.benefits-grid p {
    max-width: 360px;
    font-size: 17px;
    line-height: 1.65;
}

/* Customer cases */

.customer-cases {
    display: grid;
    grid-template-columns: 1fr;
}

.customer-case {
    position: relative;
    display: flex;
    aspect-ratio: 1;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.customer-case::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(18, 24, 16, 0.78) 0%,
        rgba(18, 24, 16, 0.55) 42%,
        rgba(18, 24, 16, 0.08) 78%
    );
    content: "";
}

.customer-case-better-jusage {
    background-image: url("assets/rasaft4.png");
}

.customer-case-featured {
    min-height: 620px;
    aspect-ratio: 2 / 1;
    background-position: center;
}

.customer-case-featured .customer-case-copy {
    width: min(52%, 650px);
}

.customer-case-copy {
    width: min(72%, 470px);
    padding: clamp(28px, 4vw, 58px);
}

.customer-case-name {
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.customer-case blockquote {
    margin: 0;
}

.customer-case blockquote > p,
.customer-case-placeholder {
    font-family: var(--display);
    font-size: clamp(25px, 2.2vw, 38px);
    line-height: 1.15;
}

.customer-case blockquote cite {
    display: block;
    margin-top: clamp(22px, 2.5vw, 34px);
    font-style: normal;
    font-size: 13px;
    line-height: 1.55;
}

.customer-case blockquote cite span {
    opacity: 0.8;
}

.contact-copy a {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.contact-person {
    font-weight: 600;
}
.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 56px;
    max-width: 820px;
}

.contact-details h3 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
}

.contact-title {
    margin-bottom: 28px;
}

.contact-details p {
    margin: 0;
}

.contact-details a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .contact-details {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Product panorama */

.product-panorama {
    width: 100%;
    background: #91a66d;
    overflow: hidden;
}

.product-panorama img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
}


/* Why HPP Nordic */

.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: clamp(60px, 8vw, 130px);
    align-items: flex-start;
}

.why-list {
    max-width: 700px;
}

.why-list p {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    font-family: var(--display);
    font-size: clamp(29px, 2.5vw, 38px);
    line-height: 1.08;
}


/* Process */

.process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.process-grid article {
    min-height: 310px;
    padding: 34px;
    background: var(--green);
}

.process-grid h3 {
    margin: 52px 0 18px;
}

.process-grid p {
    max-width: 500px;
    font-size: 17px;
    line-height: 1.65;
}


/* Contact */

.contact {
    min-height: 820px;
    display: flex;
    align-items: center;
    padding-block: 100px;
    background:
        linear-gradient(
            90deg,
            rgba(252, 252, 250, 0.9) 0%,
            rgba(252, 252, 250, 0.64) 48%,
            rgba(252, 252, 250, 0.06) 78%
        ),
        url("assets/hummus.jpeg") center / cover no-repeat;
}

.contact-copy {
    max-width: 720px;
}

.contact-copy h2 {
    margin-bottom: 34px;
}

.contact-copy p:not(.eyebrow) {
    max-width: 650px;
    font-size: 19px;
    line-height: 1.65;
}


/* Footer */

footer {
    padding-block: 36px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.footer-inner p:nth-child(2) {
    text-align: center;
}

.footer-inner p:last-child {
    text-align: right;
}


/* Tablet */

@media (max-width: 1050px) {
    .menu-button {
        display: block;
    }

    nav {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 24px var(--gutter);
        background: var(--cream);
        border-bottom: 1px solid var(--line);
    }

    nav.open {
        display: flex;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .split-media {
        min-height: 560px;
    }

    .steps-grid,
    .results-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-grid {
        grid-template-columns: 1fr;
    }

    .market-grid article {
        min-height: auto;
    }

    .why-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .why-list {
        max-width: var(--text);
    }
}


/* Mobile */

@media (max-width: 680px) {
    :root {
        --gutter: 22px;
        --section-y: 84px;
    }

    .hero {
        padding: 115px 0 58px;
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.66) 0%,
                rgba(0, 0, 0, 0.45) 60%,
                rgba(0, 0, 0, 0.1) 100%
            ),
            url("assets/hero-3.png") 68% center / cover no-repeat;
    }

    h1 {
        font-size: clamp(68px, 21vw, 100px);
    }

    .hero-wordmark {
        width: min(91%, 315px);
        margin-top: 0;
    }

    h2 {
        font-size: clamp(47px, 14vw, 68px);
        line-height: 1.01;
        letter-spacing: 0.008em;
    }

    .actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .split-media {
        min-height: 440px;
    }

    .split-copy {
        padding: 78px var(--gutter);
    }

    .steps-grid,
    .results-grid,
    .process-grid,
    .benefits-grid,
    .customer-cases {
        grid-template-columns: 1fr;
    }

    .customer-case-copy {
        width: 82%;
        padding: 28px 24px;
    }

    .customer-case-featured .customer-case-copy {
        width: 70%;
    }

    .customer-case blockquote > p,
    .customer-case-placeholder {
        font-size: clamp(22px, 6.2vw, 27px);
        line-height: 1.18;
    }

    .customer-case {
        min-height: 580px;
        aspect-ratio: auto;
        align-items: center;
        background-position: 52% center;
    }

    .customer-case::before {
        background: linear-gradient(
            90deg,
            rgba(18, 24, 16, 0.82) 0%,
            rgba(18, 24, 16, 0.58) 43%,
            rgba(18, 24, 16, 0.08) 76%,
            rgba(18, 24, 16, 0) 100%
        );
    }

    .customer-case-name {
        margin-bottom: 14px;
    }

    .customer-case blockquote cite {
        margin-top: 20px;
        font-size: 12px;
    }

    .challenge-section {
        min-height: auto;
    }

    .benefits-grid article {
        min-height: auto;
        padding: 28px 24px;
    }

    .steps-grid article,
    .process-grid article {
        min-height: auto;
        padding: 28px 24px;
    }

    .fact-row {
        grid-template-columns: 1fr;
        padding: 26px 0;
    }

    .product-panorama img {
        aspect-ratio: 4 / 3;
    }

    .contact {
        min-height: 700px;
        padding-block: 84px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-inner p:nth-child(2),
    .footer-inner p:last-child {
        text-align: left;
    }
}

/* Mobile phones in landscape */

@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 950px) {
    .customer-cases {
        grid-template-columns: 1fr;
    }

    .customer-case {
        min-height: 520px;
        aspect-ratio: auto;
        align-items: center;
        background-position: center;
    }

    .customer-case::before {
        background: linear-gradient(
            90deg,
            rgba(18, 24, 16, 0.82) 0%,
            rgba(18, 24, 16, 0.58) 43%,
            rgba(18, 24, 16, 0.08) 76%,
            rgba(18, 24, 16, 0) 100%
        );
    }

    .customer-case-copy {
        width: min(68%, 520px);
        padding: 32px var(--gutter);
    }

    .customer-case blockquote > p,
    .customer-case-placeholder {
        font-size: clamp(22px, 3.4vw, 27px);
        line-height: 1.18;
    }

    .customer-case blockquote cite {
        margin-top: 20px;
        font-size: 12px;
    }
}
