@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@600&family=Manrope:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-soft: #c8d4db;
    --bg-accent: #aac6fa;
    --portfolio-soft-blue: #A9C9F5;
    --portfolio-soft-blue-soft: rgba(170, 198, 250, 0.28);
    --text-dark: #142231;
    --text-light: #f5f8fb;
    --card-shadow: rgba(29, 43, 58, 0.12);
    --contact-gradient: var(--portfolio-soft-blue-soft);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    background: #f4f5f7;
    color: var(--text-dark);
}

.top-gradient {
    background: #c8d4db;
    background: radial-gradient(circle, rgba(200, 212, 219, 1) 0%, rgba(170, 198, 250, 1) 100%);
}

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

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 0;
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.16);
    border-bottom-color: rgba(29, 43, 58, 0.08);
    box-shadow: 0 10px 25px rgba(29, 43, 58, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 72px;
}

.top-gradient {
    overflow: visible;
}

.logo img {
    width: 120px;
    height: auto;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: #1d2b3a;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.site-header nav a {
    position: relative;
}

.site-header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: currentColor;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .site-header nav a::after { transition: none; }
}

.menu-toggle {
    display: none;
}

.top-gradient {
    background:
        radial-gradient(circle at 15% 20%, rgba(185, 216, 245, 0.85) 0%, rgba(185, 216, 245, 0.42) 22%, rgba(220, 234, 245, 0.2) 38%, transparent 58%),
        radial-gradient(circle at 70% 22%, rgba(247, 239, 229, 0.82) 0%, rgba(247, 239, 229, 0.2) 28%, transparent 52%),
        linear-gradient(90deg, #b9d8f5 0%, #dceaf5 38%, #f7f6f2 58%, #f7efe5 100%);
}

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: transparent;
    border-radius: 0;
    padding-top: 72px;
}

.hero-inner {
    max-width: 1320px;
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    padding: 0 0 32px;
}

.hero-text {
    max-width: 700px;
    padding-left: 0;
    margin-left: -10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.eyebrow {
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 2.6vw, 2.8rem);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(23, 38, 56, 0.85);
    font-family: 'Manrope', sans-serif;
    transform: translateY(-12px);
}

.hero h1 {
    margin: 0;
    font-size: clamp(90px, 9vw, 145px);
    line-height: 0.9;
    letter-spacing: -0.015em;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 0.04em;
}

.hero-name-line {
    display: block;
    font-weight: 600;
    line-height: 0.95;
}

.hero h2 {
    margin: 26px 0 20px;
    font-size: clamp(1.4rem, 2vw, 1.625rem);
    line-height: 1.2;
    font-weight: 400;
    color: rgba(23, 38, 56, 0.9);
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.01em;
}

.hero-scroll-arrow {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--text-dark);
    text-decoration: none;
    opacity: 0.95;
    animation: hero-scroll-bob 1.9s ease-in-out infinite;
}

.hero-scroll-arrow span {
    font-size: 30px;
    line-height: 1;
    display: inline-block;
}

.hero-scroll-arrow:hover,
.hero-scroll-arrow:focus-visible {
    opacity: 1;
}

@keyframes hero-scroll-bob {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.hero-image {
    position: relative;
    width: min(560px, 100%);
    height: clamp(360px, 34vw, 430px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 12% 6% 8% 16%;
    background: rgba(170, 198, 250, 0.28);
    border-radius: 44% 56% 58% 42% / 42% 30% 70% 58%;
    z-index: 0;
    transform: translate(-18px, 10px);
    animation: portrait-bg-drift 16s ease-in-out infinite alternate;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 18% 10% 14% 19%;
    background: rgba(170, 198, 250, 0.14);
    border-radius: 58% 42% 54% 46% / 34% 52% 48% 66%;
    z-index: 0;
    transform: translate(22px, -8px);
    animation: portrait-bg-drift-alt 18s ease-in-out infinite alternate;
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 32% 68% 58% 42% / 44% 34% 66% 56%;
    display: block;
    filter: saturate(0.95) contrast(1.04);
    transform: translate(8px, 2px) rotate(-1deg);
    animation: portrait-float 14s ease-in-out infinite alternate;
}

@keyframes portrait-bg-drift {
    0% {
        transform: translate(-18px, 8px) scale(1);
    }
    100% {
        transform: translate(10px, -10px) scale(1.04);
    }
}

@keyframes portrait-bg-drift-alt {
    0% {
        transform: translate(18px, -8px) scale(1);
    }
    100% {
        transform: translate(-6px, 10px) scale(1.05);
    }
}

@keyframes portrait-float {
    0% {
        transform: translate(8px, 2px) rotate(-1deg);
    }
    100% {
        transform: translate(-8px, -4px) rotate(1.5deg);
    }
}

@media (max-width: 820px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: left;
        padding-top: 32px;
        padding-bottom: 18px;
    }

    .hero-text {
        max-width: none;
        padding-left: 0;
    }

    .hero-image {
        width: min(420px, 100%);
        height: clamp(350px, 72vw, 480px);
        order: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-link,
    .scroll-link span {
        transition: none;
    }
}

.projekter {
    background-color: #FAF9F6;
    padding: clamp(40px, 6vw, 80px) 0 clamp(10px, 2vw, 18px);
}

.projekter .container {
    width: calc(100% - clamp(24px, 6.8vw, 132px));
}

.projects-header {
    margin: 0 auto 28px;
    text-align: center;
}

.projects-heading {
    margin: 0;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.4rem, 3vw, 3.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.055em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 1vw, 20px);
}

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0;
    background: #e9eff5;
    text-decoration: none;
    aspect-ratio: 1;
}

.project-card:focus-visible {
    outline: 2px solid var(--text-dark);
    outline-offset: 2px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 20px;
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.project-card:hover::after,
.project-card:focus-visible::after,
.project-card:hover .project-card-overlay,
.project-card:focus-visible .project-card-overlay {
    opacity: 1;
}

.project-card-category {
    font-size: clamp(0.65rem, 0.9vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.4;
}

.project-card-name {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
}

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

    .project-card-overlay {
        padding: 12px;
    }
}

/* Keep project details visible on phones and devices without hover. */
@media (max-width: 768px), (hover: none) {
    .home-page .project-card::after {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 75%);
    }

    .home-page .project-card-overlay {
        opacity: 1;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
        padding: 12px;
        gap: 4px;
    }

    .home-page .project-card-name {
        font-size: clamp(0.85rem, 3.5vw, 1.15rem);
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card::after,
    .project-card-overlay {
        transition: none;
    }
}

.about-section {
    padding: clamp(48px, 6vw, 80px) 0 clamp(75px, 9vw, 120px);
    border-top: none;
    background: #f4f5f7;
}

.about-simple {
    display: block;
}

.about-simple-copy {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.about-label,
.about-programs-label {
    margin: 0 0 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(29, 43, 58, 0.85);
}

.about-programs-label {
    font-size: 0.9rem;
}

.about-simple h2 {
    margin: 0 0 36px;
    text-align: center;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-family: 'Manrope', sans-serif;
    color: var(--text-dark);
}

.about-simple-copy > p {
    margin: 0 auto;
    max-width: 76ch;
    color: rgba(29, 43, 58, 0.92);
    font-size: clamp(1.0625rem, 1.2vw, 1.125rem);
    line-height: 1.8;
}

.about-simple-copy > p + p {
    margin-top: 22px;
}

.about-cv-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 38px;
    padding: 11px 17px;
    border: 1px solid var(--text-dark);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.about-cv-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-cv-button:hover,
.about-cv-button:focus-visible {
    background: var(--text-dark);
    color: #f4f5f7;
}

.about-programs {
    margin-top: clamp(72px, 10vw, 120px);
}

.about-programs ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px clamp(30px, 5vw, 70px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-programs li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.about-programs img {
    width: 75px;
    height: 75px;
    flex: 0 0 75px;
    object-fit: contain;
}

.about-programs span {
    color: var(--text-dark);
    font-size: 1rem;
}

.contact-shell {
    background: var(--portfolio-soft-blue-soft);
}

.contact-section {
    padding: clamp(90px, 11vw, 150px) 0 0;
    background: transparent;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}

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

.contact-label {
    margin: 0 0 18px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(29, 43, 58, 0.76);
}

.contact-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-family: 'Manrope', sans-serif;
    color: var(--text-dark);
    transform: translateY(-8px);
}

.contact-intro {
    margin: 0 0 42px;
    font-size: clamp(1.0625rem, 1.2vw, 1.125rem);
    line-height: 1.8;
    color: rgba(29, 43, 58, 0.8);
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.contact-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
    opacity: 0.72;
}

.contact-list .social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    fill: currentColor;
    vertical-align: middle;
    flex-shrink: 0;
}

.contact-form {
    display: grid;
    gap: 18px;
    transform: translateY(-28px);
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(29, 43, 58, 0.72);
}

.field input,
.field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(29, 43, 58, 0.7);
    background: transparent;
    color: var(--text-dark);
    font: inherit;
    padding: 10px 0 12px;
    resize: vertical;
    outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(29, 43, 58, 0.46);
}

.field input:focus,
.field textarea:focus {
    border-bottom-color: var(--text-dark);
}

.contact-form button {
    justify-self: start;
    margin-top: 10px;
    border: none;
    border-radius: 999px;
    background: var(--text-dark);
    color: #f2f5f7;
    padding: 0.95rem 1.5rem;
    font: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
    background: #142535;
    transform: translateY(-1px);
}

.site-footer {
    background: transparent;
    padding: 0 0 42px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: none;
    padding-top: 20px;
}

.footer-inner p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(29, 43, 58, 0.72);
    text-align: center;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(15, 23, 33, 0.8);
    z-index: 1000;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .about-section {
        padding: 52px 0 80px;
    }

    .about-simple {
        display: block;
    }

    .about-programs {
        margin-top: 64px;
    }

    .about-programs ul {
        grid-template-columns: 1fr;
        gap: 22px;
    }

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

    .skill-groups {
        grid-template-columns: 1fr;
    }

    .about-portrait {
        height: 420px;
    }
}

/* Darker text across the portfolio */
.eyebrow,
.hero h2,
.hero-sub,
.project-tags li,
.project-desc,
.about-label,
.about-programs-label,
.about-simple-copy > p,
.contact-label,
.contact-intro,
.field label,
.footer-inner p {
    color: rgba(20, 34, 49, 0.92);
}

.project-item .project-tags li {
    color: #203A5F;
}

.project-item:nth-of-type(2) .project-tags li,
.project-item:nth-of-type(4) .project-tags li {
    color: #6F5A12;
}

/* Minimal case pages */
.case-page {
    background: #FAF9F6;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
}

.abba-page main {
    padding-top: 0;
}

.case-site-header {
    background: #FAF9F6;
    border-bottom: 1px solid rgba(29, 43, 58, 0.14);
}

.praeg-page .case-site-header {
    background: transparent;
    border-bottom-color: transparent;
}

.praeg-page .case-site-header.scrolled {
    background: rgba(255, 255, 255, 0.16);
    border-bottom-color: rgba(29, 43, 58, 0.08);
}

.abba-page .praeg-case-hero,
.plastic-page .praeg-case-hero,
.carlsberg-page .praeg-case-hero {
    background: #E9EDF0;
}

.to-do-page .praeg-case-hero {
    position: relative;
    width: 100vw;
    max-width: none;
    height: auto;
    min-height: 80vh;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.to-do-page .praeg-case-hero-inner {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 80vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}

.to-do-page .praeg-case-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 460px;
    margin-left: 6vw;
    top: auto;
    transform: none;
    width: min(460px, 88vw);
    padding: 120px 0 64px;
}

.to-do-page .praeg-case-hero-copy h1 {
    margin: 0 0 56px;
    color: var(--text-dark);
    font-size: clamp(2.5rem, 5vw, 5rem);
    white-space: nowrap;
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.to-do-page .praeg-case-meta {
    display: grid;
    gap: 16px;
    margin: 0;
}

.to-do-page .praeg-case-meta dt {
    margin-bottom: 5px;
    color: rgba(20, 34, 49, 0.7);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
}

.to-do-page .praeg-case-meta dd {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.5;
}

/* Keep the tool list compact while the title stays on one line. */
.to-do-page .praeg-case-meta .skill-pills {
    max-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.to-do-page .praeg-case-links {
    margin-top: 28px;
}

.to-do-page .project-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.to-do-page .project-link[href]:hover,
.to-do-page .project-link[href]:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.to-do-page .praeg-case-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    z-index: 0;
}

.to-do-page .praeg-case-hero-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    filter: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    max-width: none;
}

.abba-page .praeg-case-hero-copy h1,
.plastic-page .praeg-case-hero-copy h1,
.carlsberg-page .praeg-case-hero-copy h1 {
    font-size: clamp(3.25rem, 5.7vw, 5.4rem);
    line-height: 0.95;
}

.case-brand {
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.case-hero-image {
    width: 100%;
    margin: 0;
    background: #D8E4EA;
}

.case-hero-image img {
    width: 100%;
    max-height: 46vh;
    object-fit: cover;
}

.case-hero-contain {
    background: #47704f;
}

.case-hero-contain img {
    object-fit: contain;
}

.praeg-case-hero {
    height: 520px;
    min-height: 520px;
    background: #E9EDF0;
    overflow: hidden;
}

.praeg-case-hero-inner {
    height: 100%;
    min-height: 0;
    width: min(1380px, calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    padding: 84px 0 32px;
}

.praeg-case-hero-copy h1 {
    margin: 0 0 clamp(22px, 3vw, 34px);
    color: var(--text-dark);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(3.25rem, 5.7vw, 5.4rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.praeg-case-hero-copy {
    transform: translateY(-18px);
}

.praeg-case-meta {
    display: grid;
    gap: 18px;
    margin: 0;
}

.praeg-case-meta dt {
    margin-bottom: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.praeg-case-meta dd {
    margin: 0;
    font-size: clamp(1rem, 1.1vw, 1.0625rem);
    line-height: 1.6;
}

.praeg-case-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 18px;
}

.praeg-case-hero-media {
    width: 88%;
    margin: 0 0 0 auto;
}

.praeg-case-hero-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.praeg-page:not(.plastic-page):not(.to-do-page):not(.carlsberg-page):not(.abba-page):not(.tomrer-page):not(.milk-bean-page) .praeg-case-hero-media img {
    transform: scale(1.08);
    transform-origin: right center;
}

body.praeg-page:not(.abba-page):not(.plastic-page):not(.carlsberg-page):not(.to-do-page):not(.tomrer-page):not(.milk-bean-page) .praeg-case-hero-media img {
    transform: scale(0.96);
}

.plastic-page .praeg-case-hero-media {
    height: 390px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.plastic-page .praeg-case-hero-media img {
    width: auto;
    max-width: 100%;
    height: 100%;
    transform: translateX(-8%) scale(1.18);
    transform-origin: center;
}

.praeg-page .case-section {
    padding: 48px 0;
}

.praeg-page .praeg-about-project {
    padding-bottom: 28px;
}

.praeg-page .praeg-challenge {
    padding-top: 28px;
}

.praeg-page .praeg-case-hero + .case-section {
    padding-top: 72px;
}

.praeg-page .case-section > .container > .case-text {
    width: min(100%, 760px);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.praeg-page .case-section .case-text h2 {
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.praeg-page .case-section .case-text p,
.praeg-page .case-section .case-list {
    font-size: clamp(1rem, 1.1vw, 1.0625rem);
}

.praeg-page .case-section .case-text p {
    margin-bottom: 18px;
}

.praeg-page .case-section .case-text p:last-child {
    margin-bottom: 0;
}

.praeg-process-gallery {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
    margin-top: 46px;
}

.praeg-process-gallery figure {
    margin: 0;
}

.praeg-process-gallery img {
    width: 100%;
    height: auto;
}

.abba-process-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.single-case-result { margin-top: 24px; }
.single-case-result figure { margin: 0; }
.single-case-result img { display: block; width: 100%; height: auto; }

.plastic-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    margin-top: 24px;
}

.plastic-result-grid figure {
    margin: 0;
}

.plastic-result-grid img,
.plastic-result-grid video {
    display: block;
    width: 100%;
    height: auto;
}

.praeg-process-prototypes {
    display: grid;
    gap: clamp(20px, 3vw, 36px);
}

.praeg-process-visuals {
    display: grid;
    gap: 20px;
}

.praeg-process-illustrations {
    width: 100%;
    margin: 0;
}

.praeg-process-illustrations img {
    width: 100%;
    height: auto;
}

.praeg-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    margin-top: 24px;
}

.praeg-result-grid .case-result-image {
    width: calc(100% + 44px);
    max-width: none;
    margin: 0 0 0 -44px;
}

.praeg-result-video {
    width: 100%;
    margin: 0;
}

.praeg-result-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border: 0;
    border-radius: 4px;
}

@media (max-width: 760px) {
    .to-do-page .praeg-case-hero-inner {
        min-height: 90vh;
    }

    .to-do-page .praeg-case-hero-copy {
        margin-left: 20px;
        width: min(320px, calc(100% - 40px));
    }

    .praeg-result-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .praeg-result-video {
        width: min(360px, 100%);
        margin: 0 auto;
    }

    .praeg-result-grid .case-result-image {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .praeg-case-hero,
    .praeg-case-hero-inner {
        min-height: 520px;
    }

    .praeg-case-hero-inner {
        grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
        padding-top: 110px;
    }

    .praeg-case-hero-copy h1 {
        font-size: clamp(3.25rem, 8vw, 5.4rem);
    }

    .praeg-case-hero-copy {
        transform: translateY(-8px);
    }
}

@media (max-width: 760px) {
    .praeg-case-hero,
    .praeg-case-hero-inner {
        height: auto;
        min-height: 0;
    }

    .praeg-case-hero-inner {
        width: calc(100% - 40px);
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 140px 0 54px;
    }

    .praeg-case-hero-copy h1 {
        margin-bottom: 36px;
        font-size: clamp(3.25rem, 16vw, 5rem);
    }

    .praeg-case-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .praeg-case-hero-media {
        width: 116%;
        margin: 0 -16% 0 0;
    }

    .plastic-page .praeg-case-hero-media {
        width: 100%;
        height: min(390px, 70vh);
        margin: 0;
        justify-content: center;
    }

    .plastic-page .praeg-case-hero-media img {
        transform: scale(1.12);
        transform-origin: center;
    }

    .praeg-page:not(.plastic-page):not(.to-do-page):not(.carlsberg-page):not(.abba-page):not(.tomrer-page):not(.milk-bean-page) .praeg-case-hero-media img {
        transform-origin: center;
    }

    body.praeg-page:not(.abba-page):not(.plastic-page):not(.carlsberg-page):not(.to-do-page):not(.tomrer-page):not(.milk-bean-page) .praeg-case-hero-media img {
        transform: scale(0.96);
    }

    .praeg-page .case-section {
        padding: 38px 0;
    }

    .praeg-page .praeg-about-project {
        padding-bottom: 24px;
    }

    .praeg-page .praeg-challenge {
        padding-top: 24px;
    }

    .praeg-page .praeg-case-hero + .case-section {
        padding-top: 54px;
    }

    .praeg-process-gallery {
        grid-template-columns: 1fr;
        margin-top: 36px;
    }

    .abba-process-gallery { grid-template-columns: 1fr; }

    .plastic-result-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .abba-page .praeg-case-hero-copy h1,
    .plastic-page .praeg-case-hero-copy h1,
    .carlsberg-page .praeg-case-hero-copy h1 {
        font-size: clamp(3.25rem, 16vw, 5rem);
    }
}

@media (max-width: 480px) {
    .praeg-case-meta {
        grid-template-columns: 1fr;
    }
}

.case-title-section {
    padding: 28px 0 18px;
}

.case-reading-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.case-label {
    display: block;
    margin: 0 0 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(20, 34, 49, 0.92);
}

.case-title-section h1 {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 7rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
    font-weight: 600;
}

.case-section {
    padding: 18px 0;
    border-top: 0;
}

.case-overview {
    padding-top: 12px;
    padding-bottom: 24px;
}

.case-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.38fr);
    gap: clamp(40px, 7vw, 90px);
    align-items: start;
}

.abba-page .case-overview-grid {
    width: min(1380px, calc(100% - 40px));
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: clamp(28px, 4vw, 52px);
}

.abba-page .case-overview-grid > .case-text {
    max-width: 900px;
    padding-left: max(40px, calc((100% - 1100px) / 2 + 50px));
}

.abba-page .case-details-column {
    justify-self: end;
}

.abba-page .case-text p {
    margin-bottom: 18px;
}

.abba-page .case-section:not(.case-overview) .case-text {
    max-width: 760px;
}

.case-text {
    max-width: 900px;
}

.case-standalone-text {
    width: min(100%, 740px);
}

.case-text h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    line-height: 1.35;
    letter-spacing: -0.015em;
    font-weight: 600;
}

.case-overview-challenge {
    margin-top: 30px;
}

.case-visual-process h2 {
    margin: 0 0 24px;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 500;
}

.case-text p,
.case-visual-process .case-reading-container > p {
    margin: 0 0 10px;
    color: rgba(20, 34, 49, 0.92);
    font-size: 1.05rem;
    line-height: 1.75;
}

.case-list {
    max-width: 860px;
    margin: 10px 0 0;
    padding-left: 28px;
    color: rgba(20, 34, 49, 0.92);
    font-size: 1.05rem;
    line-height: 1.8;
}

.case-list li {
    padding-left: 4px;
}

.case-process-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.case-process-gallery {
    display: grid;
    gap: 20px;
}

.case-process-gallery figure {
    margin: 0;
}

.case-process-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.case-visual-process {
    margin-top: 22px;
    padding-top: 42px;
}

.case-details {
    margin: 0;
}

.case-details div {
    margin-bottom: 18px;
}

.case-details dt {
    margin-bottom: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.abba-page .case-details dt {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.abba-page .case-tool-tags {
    margin: 0;
}

.case-details dd {
    margin: 0;
    color: rgba(20, 34, 49, 0.92);
    font-size: 0.95rem;
    line-height: 1.6;
}

.case-gallery {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.case-results-gallery {
    max-width: 960px;
}

.case-result-image {
    max-width: 960px;
    margin-top: 32px;
    margin-bottom: 0;
}

.case-result-image img {
    width: 100%;
    height: auto;
}

.case-gallery figure {
    margin: 0;
}

.case-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.case-gallery-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

.case-gallery-pair img {
    aspect-ratio: 4 / 3;
}

.case-gallery-pair figure:first-child img {
    object-position: left center;
}

.case-gallery-pair figure:last-child img {
    object-position: right center;
}

.case-gallery-vinyl img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.case-gallery-contain img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.case-next-project {
    display: block;
    padding: 48px 0;
    border-top: 1px solid rgba(29, 43, 58, 0.2);
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.case-next-project .case-label {
    margin-bottom: 18px;
}

.case-next-title {
    display: block;
    font-size: clamp(3rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.055em;
    transition: transform 0.2s ease;
}

.praeg-page .praeg-solution {
    padding-bottom: 18px;
}

.praeg-page .case-next-project {
    padding: 68px 0;
}

.praeg-page .case-next-title {
    width: fit-content;
    font-size: 2.25rem;
    transform: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 1px;
    padding-bottom: 4px;
    transition: background-size 0.25s ease;
}

.praeg-page .case-next-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.praeg-page .case-next-project:hover .case-next-title,
.praeg-page .case-next-project:focus-visible .case-next-title {
    transform: none;
}

.praeg-page .case-next-project:hover .case-next-arrow,
.praeg-page .case-next-project:focus-visible .case-next-arrow {
    transform: translateX(7px);
}

.praeg-page .case-next-project:hover .case-next-title,
.praeg-page .case-next-project:focus-visible .case-next-title {
    background-size: 100% 1px;
}

.case-next-project:hover,
.case-next-project:focus-visible {
    background: rgba(29, 43, 58, 0.035);
}

.case-next-project:hover .case-next-title,
.case-next-project:focus-visible .case-next-title {
    transform: translateX(8px);
}

.case-footer {
    padding: clamp(58px, 7vw, 88px) 0 28px;
    background: #FAF9F6;
    color: var(--text-dark);
}

.praeg-page .case-footer {
    padding-top: 40px;
}

.case-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.case-footer-name {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.case-footer-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 38px);
}

.case-footer-links a {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.case-footer-links a:hover,
.case-footer-links a:focus-visible {
    opacity: 0.62;
}

.case-footer-copyright {
    margin: clamp(54px, 7vw, 84px) 0 0;
    color: rgba(20, 34, 49, 0.66);
    font-size: 0.8rem;
}

@media (max-width: 760px) {
    .abba-page main {
        padding-top: 140px;
    }

    .case-site-header .header-inner {
        flex-direction: row;
        min-height: 68px;
    }

    .case-overview-grid,
    .case-process-grid,
    .case-gallery-pair {
        grid-template-columns: 1fr;
    }

    .case-overview-grid {
        gap: 54px;
    }

    .abba-page .case-overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .abba-page .case-details-column {
        justify-self: start;
    }

    .abba-page .case-overview-grid > .case-text {
        padding-left: 0;
    }

    .case-details {
        padding-top: 40px;
        border-top: 1px solid rgba(29, 43, 58, 0.16);
    }

    .case-gallery-pair img {
        aspect-ratio: auto;
    }

    .case-gallery-contain img {
        aspect-ratio: 4 / 3;
    }

    .case-footer {
        padding: 52px 0 24px;
    }

    .case-footer-top,
    .case-footer-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .case-footer-top {
        gap: 30px;
    }

    .case-footer-links {
        gap: 14px;
    }

    .case-footer-copyright {
        margin-top: 48px;
    }

    .praeg-page .case-next-title {
        font-size: 1.75rem;
    }

    .praeg-page .case-next-project {
        padding: 60px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-visual,
    .about-copy {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 760px) {
    .projekter .container {
        width: calc(100% - clamp(24px, 6.8vw, 132px));
    }

    .project-item {
        grid-template-columns: 1fr;
        padding: 52px 0;
    }

    .project-item.reverse {
        grid-template-columns: 1fr;
    }

    .project-item.reverse .project-copy,
    .project-item.reverse .project-media {
        order: initial;
    }

    .project-copy {
        max-width: 100%;
    }

    .project-copy {
        margin-left: 0;
    }

    .project-kicker {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .project-context {
        letter-spacing: 0.12em;
    }

    .project-desc {
        max-width: 100%;
    }

    .project-media {
        margin-top: 18px;
        height: 440px;
    }

    .project-media-large {
        width: 100%;
        height: 440px;
        overflow: hidden;
    }

    .project-media-large img {
        width: 100%;
        height: 100%;
    }

    .project-item:first-of-type .project-media,
    .project-media-plastic {
        overflow: hidden;
    }

    .project-item:first-of-type .project-media img,
    .project-media-plastic img {
        width: 100%;
        height: 100%;
    }

    .project-media:hover img,
    .project-media:focus-visible img {
        transform: none;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 16px 0;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    nav {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text {
        padding-left: 0;
    }

    .scroll-link {
        justify-content: center;
    }
}

/* Responsive front page */
@media (max-width: 900px) {
    :is(.home-page, .shared-site) .site-header {
        padding: 0;
    }

    :is(.home-page, .shared-site) .header-inner {
        position: relative;
        min-height: 68px;
        flex-direction: row;
        gap: 20px;
    }

    :is(.home-page, .shared-site) .logo img {
        width: 104px;
    }

    :is(.home-page, .shared-site) .menu-toggle {
        display: inline-flex;
        width: 44px;
        height: 44px;
        padding: 11px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        color: var(--text-dark);
    }

    :is(.home-page, .shared-site) .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transform-origin: center;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    :is(.home-page, .shared-site) .menu-toggle:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }

    :is(.home-page, .shared-site) .site-header nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        border: 1px solid rgba(29, 43, 58, 0.1);
        border-radius: 12px;
        background: rgba(244, 245, 247, 0.94);
        box-shadow: 0 16px 38px rgba(29, 43, 58, 0.12);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

    :is(.home-page, .shared-site) .site-header nav a {
        padding: 14px 16px;
        border-radius: 8px;
    }

    :is(.home-page, .shared-site) .site-header nav a::after {
        left: 16px;
        right: 16px;
        bottom: 10px;
    }

    :is(.home-page, .shared-site) .site-header.menu-open {
        background: rgba(244, 245, 247, 0.78);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    :is(.home-page, .shared-site) .site-header.menu-open nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    :is(.home-page, .shared-site) .site-header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    :is(.home-page, .shared-site) .site-header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    :is(.home-page, .shared-site) .site-header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .home-page .hero {
        min-height: auto;
        padding-top: 68px;
    }

    .home-page .hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 56px 0 72px;
        text-align: center;
    }

    .home-page .hero-text {
        margin-left: 0;
        align-items: center;
    }

    .home-page .eyebrow {
        transform: none;
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        margin-bottom: 16px;
    }

    .home-page .hero h1 {
        font-size: clamp(4.5rem, 13vw, 7rem);
    }

    .home-page .hero h2 {
        margin-top: 22px;
        font-size: clamp(1.1rem, 3vw, 1.4rem);
    }

    .home-page .hero-image {
        width: min(440px, 78vw);
        height: clamp(360px, 66vw, 470px);
    }

    .home-page .hero-scroll-arrow {
        display: none;
    }

    .home-page .projekter .container {
        width: calc(100% - clamp(24px, 6.8vw, 132px));
    }

    .home-page .projects-heading {
        padding: 56px 0 14px;
    }

    .home-page .project-item,
    .home-page .project-item.reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 46px 0;
    }

    .home-page .project-item.reverse .project-copy,
    .home-page .project-item.reverse .project-media {
        order: initial;
    }

    .home-page .project-copy {
        max-width: 680px;
        margin: 0 auto;
        padding: 0;
    }

    .home-page .project-media,
    .home-page .project-media-large {
        height: clamp(340px, 62vw, 520px);
        margin-top: 0;
        overflow: hidden;
    }

    .home-page .about-section {
        padding: 68px 0 88px;
    }

    .home-page .about-programs {
        margin-top: 64px;
    }

    .home-page .about-programs ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 40px;
    }

    .home-page .about-programs img {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    :is(.home-page, .shared-site) .contact-section {
        padding: 88px 0 0;
    }

    :is(.home-page, .shared-site) .contact-wrap {
        grid-template-columns: 1fr;
        gap: 72px;
    }

    :is(.home-page, .shared-site) .contact-copy {
        max-width: 650px;
    }

    :is(.home-page, .shared-site) .contact-copy h2,
    :is(.home-page, .shared-site) .contact-form {
        transform: none;
    }

    :is(.home-page, .shared-site) .contact-form {
        width: 100%;
    }

    :is(.home-page, .shared-site) .site-footer {
        padding-top: 72px;
    }
}

@media (max-width: 520px) {
    .home-page .container,
    :is(.home-page, .shared-site) .header-inner,
    .home-page .projekter .container {
        width: calc(100% - clamp(24px, 6.8vw, 132px));
    }

    .home-page .hero-inner {
        gap: 34px;
        padding: 42px 0 58px;
    }

    .home-page .eyebrow {
        font-size: 1.25rem;
    }

    .home-page .hero h1 {
        font-size: clamp(3.45rem, 17vw, 5rem);
        letter-spacing: -0.025em;
    }

    .home-page .hero h2 {
        max-width: 18ch;
    }

    .home-page .hero-image {
        width: min(330px, 88vw);
        height: clamp(310px, 100vw, 390px);
    }

    .home-page .projects-heading,
    .home-page .about-simple h2,
    :is(.home-page, .shared-site) .contact-copy h2 {
        font-size: clamp(2.5rem, 12vw, 3rem);
    }

    .home-page .project-item,
    .home-page .project-item.reverse {
        gap: 24px;
        padding: 38px 0;
    }

    .home-page .project-title {
        font-size: clamp(2rem, 9vw, 2.375rem);
    }

    .home-page .project-tags {
        gap: 7px;
    }

    .home-page .project-tags li {
        font-size: 0.75rem;
        padding: 5px 8px;
    }

    .home-page .project-media,
    .home-page .project-media-large {
        height: clamp(280px, 82vw, 350px);
    }

    .home-page .about-simple h2 {
        margin-bottom: 28px;
    }

    .home-page .about-cv-button {
        margin-top: 30px;
    }

    .home-page .about-programs {
        margin-top: 56px;
    }

    .home-page .about-programs ul {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-page .about-programs img {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    :is(.home-page, .shared-site) .contact-section {
        padding-top: 72px;
    }

    :is(.home-page, .shared-site) .contact-wrap {
        gap: 58px;
    }

    :is(.home-page, .shared-site) .contact-intro {
        margin-bottom: 34px;
    }

    :is(.home-page, .shared-site) .contact-form button {
        width: 100%;
    }
}

/* Full-screen video hero. */
.home-page .hero-split {
    /* Opaque equivalent of the contact background over the page's #f4f5f7. */
    --hero-text-blue: #dfe8f8;
    --hero-text-cream: #F4F2ED;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    padding: 0;
    background: #C8D8E6;
    color: var(--hero-text-cream);
    isolation: isolate;
    overflow: hidden;
}

.home-page .hero-split::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 19, 29, 0.22), rgba(10, 19, 29, 0.09) 35%, rgba(10, 19, 29, 0.46));
}

.home-page .hero-split .hero-inner {
    width: calc(100% - clamp(40px, 10vw, 160px));
    max-width: 1500px;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 132px;
    text-align: left;
}

.home-page .hero-split .hero-text {
    position: relative;
    z-index: 2;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    align-items: flex-start;
    text-align: left;
}

.home-page .hero-split .hero-kicker,
.home-page .hero-split .hero-description {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(0.65rem, 0.85vw, 0.85rem);
    line-height: 1.7;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.home-page .hero-split .hero-kicker {
    margin-bottom: 22px;
}

.home-page .hero-split h1 {
    display: block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(46.2px, 6.711vw, 115.46px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.95;
    color: var(--hero-text-blue);
}

.home-page .hero-split .hero-name-line {
    display: inline;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: inherit;
    line-height: inherit;
}

.home-page .hero-split .hero-description {
    margin: 24px 0 30px;
}

.home-page .hero-split .hero-project-link {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 14px 22px;
    border: 1px solid var(--hero-text-cream);
    border-radius: 999px;
    color: var(--hero-text-cream);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    font-weight: 500;
}

.home-page .hero-split .hero-project-link:hover {
    background: var(--hero-text-cream);
    color: #172331;
}

.home-page .hero-split .hero-project-link:focus-visible {
    outline: 2px solid var(--hero-text-cream);
    outline-offset: 5px;
}

.home-page .hero-split .hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    background: transparent;
}

.home-page .hero-split .hero-image::before,
.home-page .hero-split .hero-image::after {
    content: none;
}

.home-page .hero-split .hero-image img,
.home-page .hero-split .hero-image video {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: center 30%;
    filter: grayscale(1);
    animation: none;
}

.home-page .hero-split .hero-scroll-arrow {
    display: inline-flex;
    z-index: 2;
    left: 50%;
    bottom: 20px;
    opacity: 0.65;
    animation: none;
    color: var(--hero-text-cream);
}

.home-page .hero-split .hero-scroll-arrow span {
    font-size: 22px;
}

:is(.home-page, .shared-site) .site-header:not(.scrolled):not(.menu-open) {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

:is(.home-page, .shared-site) .site-header:not(.scrolled):not(.menu-open) nav a,
:is(.home-page, .shared-site) .site-header:not(.scrolled):not(.menu-open) .menu-toggle {
    color: #fff;
}

:is(.home-page, .shared-site) .site-header:not(.scrolled):not(.menu-open) .logo img {
    filter: brightness(0) invert(1);
}

:is(.home-page, .shared-site) .site-header.scrolled {
    background: rgba(247, 246, 242, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

@media (max-width: 700px) {
    .home-page .hero-split {
        min-height: 560px;
    }

    .home-page .hero-split .hero-inner {
        padding: 100px 0 100px;
    }

    .home-page .hero-split h1 {
        font-size: clamp(37.52px, 10.1024vw, 67.83px);
    }

    .home-page .hero-split .hero-name-line {
        display: block;
    }

    .home-page .hero-split .hero-image img,
.home-page .hero-split .hero-image video {
        object-position: 56% 18%;
    }

    .home-page .hero-split .hero-description {
        max-width: 31ch;
        margin: 20px 0 24px;
        letter-spacing: 0.13em;
    }

}

.about-new-section {
    position: relative;
    overflow: hidden;
    background: #f4f5f7;
    padding: clamp(18px, 2.8vw, 30px) 0 8px;
    color: var(--text-dark);
}

.about-page {
    background: #f7f6f2;
    color: var(--text-dark);
}

.about-page-main {
    background: #f7f6f2;
    padding: 0 0 0;
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: clamp(620px, 78vh, 820px);
    background: transparent;
    border-top: 1px solid rgba(20, 34, 49, 0.08);
    border-bottom: 1px solid rgba(20, 34, 49, 0.08);
}

.about-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: clamp(48px, 6vw, 88px) clamp(28px, 4vw, 54px) clamp(48px, 6vw, 88px) clamp(32px, 5vw, 92px);
    background: var(--portfolio-soft-blue-soft);
}

.about-hero__content p {
    margin: 0;
    max-width: 520px;
    text-align: left;
}

.about-hero__content > h1 + p {
    margin-top: 26px;
}

.about-hero__image {
    width: 100%;
    height: 100%;
    min-height: clamp(620px, 78vh, 820px);
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.about-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    clip-path: none;
    filter: grayscale(1) contrast(1.05);
}

.about-intro-copy > h1 + p {
    margin-top: 26px;
    max-width: 520px;
}

.about-intro-kicker {
    margin: 0 0 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(20, 34, 49, 0.72);
}

.about-intro-name {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.7rem, 4vw, 5rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
    text-transform: uppercase;
    color: var(--text-dark);
}

.about-intro-copy p:last-child {
    margin: 18px 0 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.03rem, 1.3vw, 1.22rem);
    line-height: 1.8;
    color: rgba(20, 34, 49, 0.82);
}

.about-editorial {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 52px) 0;
}

.about-editorial-index {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0 auto 22px;
    padding-top: 0;
}

.about-editorial-index span {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 0.88;
    letter-spacing: -0.08em;
    font-weight: 700;
    color: rgba(20, 34, 49, 0.88);
}

.about-editorial-index h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 600;
    color: var(--text-dark);
}

.about-editorial-content {
    max-width: 720px;
    margin: 0 0 0 96px;
    padding-left: 0;
}

.about-editorial-content p {
    margin: 0 0 1.2em;
    max-width: 100%;
    margin-left: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(0.96rem, 1.18vw, 1.12rem);
    line-height: 1.8;
    color: rgba(20, 34, 49, 0.82);
}

.about-editorial-content p:last-child {
    margin-bottom: 0;
}

.skill-group {
    margin-top: 26px;
}

.skill-group h3 {
    margin: 0 0 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(20, 34, 49, 0.74);
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(20, 34, 49, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1;
}

.about-workflow {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 0 0;
}

.about-workflow-index {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 auto 18px;
    padding-top: 0;
}

.about-workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
    margin-left: 96px;
    padding-left: 0;
}

.about-workflow-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 180px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(20, 34, 49, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.32);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-workflow-card:hover,
.about-workflow-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(20, 34, 49, 0.2);
}

.about-workflow-label {
    display: inline-block;
    margin: 0 0 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.5;
    color: rgba(20, 34, 49, 0.72);
}

.about-workflow-card p {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.14rem);
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-dark);
}

.about-contact-section {
    position: relative;
    padding: clamp(48px, 7vw, 88px) 0 0;
    color: var(--text-dark);
}

.about-contact-panel {
    --cursor-x: 50%;
    --cursor-y: 50%;
    position: relative;
    width: 100%;
    margin: 0;
    padding: clamp(32px, 4vw, 64px) clamp(20px, 4vw, 56px) 0;
    border: 1px solid rgba(20, 34, 49, 0.08);
    border-left: none;
    border-right: none;
    border-radius: 0;
    overflow: hidden;
    isolation: isolate;
}

.contact-shell {
    background: var(--contact-gradient);
}

.about-contact-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.about-contact-panel > * {
    position: relative;
    z-index: 1;
}

.contact-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(1.25rem, 2.4vw, 2.4rem);
    align-items: start;
}

.about-contact-copy {
    max-width: 680px;
    text-align: left;
}

.contact-label {
    margin: 0 0 18px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(20, 34, 49, 0.76);
}

.about-contact-copy h2 {
    margin: 0 0 18px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    color: #142231;
    transform: translateY(-8px);
}

.about-contact-intro {
    margin: 0 0 42px;
    max-width: 52ch;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.0625rem, 1.2vw, 1.125rem);
    line-height: 1.8;
    color: rgba(20, 34, 49, 0.8);
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.contact-social-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.contact-social-row .social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.contact-social-row .social-link,
.contact-social-row .social-link:visited,
.contact-social-row .social-link:hover,
.contact-social-row .social-link:focus-visible {
    color: var(--text-dark);
}

.contact-social-row .social-link .social-icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
    flex-shrink: 0;
    transform: translateY(1px);
}

.contact-list a:hover,
.contact-list a:focus-visible {
    opacity: 0.72;
}

.about-contact-form {
    display: grid;
    gap: 18px;
    transform: translateY(-28px);
    margin: 0;
}

.about-contact-form .field {
    display: grid;
    gap: 8px;
    text-align: left;
}

.about-contact-form .field label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(20, 34, 49, 0.72);
}

.about-contact-form .field input,
.about-contact-form .field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(20, 34, 49, 0.7);
    background: transparent;
    color: var(--text-dark);
    font: inherit;
    padding: 10px 0 12px;
    resize: vertical;
    outline: none;
}

.about-contact-form .field input::placeholder,
.about-contact-form .field textarea::placeholder {
    color: rgba(20, 34, 49, 0.46);
}

.about-contact-form .field input:focus,
.about-contact-form .field textarea:focus {
    border-bottom-color: var(--text-dark);
}

.about-contact-form button {
    justify-self: start;
    margin-top: 10px;
    border: 1px solid var(--text-dark);
    border-radius: 999px;
    background: var(--text-dark);
    color: var(--text-light);
    padding: 0.95rem 1.5rem;
    font: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.about-contact-form button:hover,
.about-contact-form button:focus-visible {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
    transform: translateY(-1px);
}

.about-contact-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: clamp(32px, 5vw, 54px);
    padding-top: 0;
    border-top: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(20, 34, 49, 0.74);
}

.about-contact-copyright {
    display: inline-block;
    text-align: center;
    color: rgba(20, 34, 49, 0.74);
}

.about-page-layout {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(0, 1.25fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.about-page-visual {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: clamp(-42px, -3vw, -18px);
}

.about-page-blob {
    width: min(100%, 590px);
    margin: 0;
}

.about-page-name-block {
    width: min(100%, 430px);
    margin-top: 20px;
}

.about-page-name {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
    text-transform: uppercase;
    color: var(--text-dark);
}

.about-page-description {
    margin: 16px 0 0;
    max-width: 55ch;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.8;
    color: rgba(20, 34, 49, 0.8);
}

.about-page-content {
    min-height: 420px;
}

.about-new-wrap {
    position: relative;
    z-index: 1;
    width: calc(100% - clamp(40px, 6.8vw, 132px));
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

.about-new-copy {
    max-width: 620px;
}

.about-new-label {
    display: inline-block;
    margin-bottom: 18px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(20, 34, 49, 0.8);
}

.about-new-copy h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.65rem, 4vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 700;
    color: var(--text-dark);
}

.about-new-copy p {
    margin: 20px 0 0;
    max-width: 52ch;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.02rem, 1.3vw, 1.2rem);
    line-height: 1.8;
    color: rgba(20, 34, 49, 0.8);
}

.about-new-knowledge {
    margin: 22px 0 0;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(20, 34, 49, 0.78);
}

.about-new-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 0.9rem 1.5rem;
    border: 1px solid rgba(20, 34, 49, 0.72);
    border-radius: 999px;
    background: transparent;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.about-new-button:hover,
.about-new-button:focus-visible {
    border-color: var(--text-dark);
    background: rgba(170, 198, 250, 0.1);
    transform: translateY(-1px);
}

.about-new-portrait-wrap {
    position: relative;
    width: min(100%, 540px);
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-new-portrait-wrap {
    position: relative;
    width: min(100%, 540px);
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-new-blob {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    aspect-ratio: 0.86;
    overflow: hidden;
    border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
    box-shadow: 0 18px 42px rgba(20, 34, 49, 0.08);
    background: #d7e6ff;
    animation: portrait-shape 9s ease-in-out infinite alternate;
}

.about-new-blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@keyframes portrait-shape {
    0% {
        border-radius: 56% 44% 52% 48% / 42% 58% 42% 58%;
    }
    25% {
        border-radius: 50% 50% 46% 54% / 52% 40% 60% 48%;
    }
    50% {
        border-radius: 46% 54% 58% 42% / 40% 52% 48% 60%;
    }
    75% {
        border-radius: 54% 46% 50% 50% / 48% 62% 38% 52%;
    }
    100% {
        border-radius: 52% 48% 56% 44% / 46% 42% 58% 54%;
    }
}

.about-new-meta {
    width: calc(100% - clamp(40px, 6.8vw, 132px));
    max-width: 1400px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 30px);
    padding-top: 18px;
    border-top: 1px solid rgba(20, 34, 49, 0.14);
}

.about-new-column {
    min-height: 100%;
}

.about-new-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(20, 34, 49, 0.75);
}

.about-new-column p {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 0.99rem;
    line-height: 1.8;
    color: rgba(20, 34, 49, 0.9);
}

.tools-section {
    display: none;
}

.contact-footer-section {
    position: relative;
    padding: clamp(76px, 9vw, 120px) 0;
    color: var(--text-dark);
}

.contact-footer-box {
    position: relative;
    overflow: hidden;
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 52px);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(20, 34, 49, 0.08);
    border-radius: 32px;
    box-shadow: 0 18px 42px rgba(20, 34, 49, 0.06);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-footer-box:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 48px rgba(20, 34, 49, 0.08);
}

.contact-footer-hover-button {
    position: absolute;
    left: 0;
    top: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--bg-accent);
    color: var(--text-dark);
    display: grid;
    place-items: center;
    font-size: 2rem;
    line-height: 1;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 12px 26px rgba(170, 198, 250, 0.2);
    transform: translate(-10%, -10%) scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-footer-box.is-hovering .contact-footer-hover-button {
    opacity: 1;
    transform: translate(var(--pointer-x), var(--pointer-y)) scale(1);
}

.contact-footer-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(26px, 4vw, 42px);
}

.contact-footer-top h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.7rem, 5vw, 5.2rem);
    line-height: 0.94;
    letter-spacing: -0.07em;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-footer-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    border: 1px solid rgba(20, 34, 49, 0.12);
    border-radius: 999px;
    background: rgba(170, 198, 250, 0.12);
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.contact-footer-cv:hover,
.contact-footer-cv:focus-visible {
    background: rgba(170, 198, 250, 0.2);
    border-color: rgba(20, 34, 49, 0.18);
    transform: translateY(-1px);
}

.contact-footer-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-footer-line-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    width: 100%;
    padding: 18px 0;
    border-top: 1px solid rgba(20, 34, 49, 0.12);
    text-decoration: none;
    color: var(--text-dark);
}

.contact-footer-line-item:first-child {
    border-top: none;
}

.contact-footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 2rem);
    line-height: 1.3;
    letter-spacing: -0.05em;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    color: var(--text-dark);
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.contact-footer-email span {
    display: inline-block;
    transform: translateY(-1px);
    transition: transform 0.25s ease;
}

.contact-footer-email:hover,
.contact-footer-email:focus-visible,
.contact-footer-meta-value:hover,
.contact-footer-meta-value:focus-visible {
    color: rgba(20, 34, 49, 0.82);
}

.contact-footer-email:hover span,
.contact-footer-email:focus-visible span,
.contact-footer-meta-value:hover span,
.contact-footer-meta-value:focus-visible span {
    transform: translate(2px, -2px);
}

.contact-footer-meta-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(20, 34, 49, 0.7);
}

.contact-footer-meta-value {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.contact-footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(20, 34, 49, 0.1);
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(20, 34, 49, 0.75);
}

@media (max-width: 760px) {
    .contact-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .contact-footer-line-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 0;
    }

    .contact-footer-email {
        align-items: flex-start;
        line-height: 1.35;
    }

    .contact-footer-hover-button {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-footer-hover-button,
    .contact-footer-box,
    .contact-footer-cv,
    .contact-footer-email,
    .contact-footer-meta-value {
        transition: none;
    }
}


@media (max-width: 760px) {
    .about-page .reveal {
        translate: 0 20px;
    }

    .about-page-main {
        padding-top: 0;
    }

    .about-intro-inner {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }

    .about-intro-copy {
        padding: clamp(42px, 10vw, 64px) 20px 18px;
        max-width: none;
    }

    .about-intro-visual {
        width: 100%;
    }

    .about-intro-blob {
        width: 100%;
        min-height: 60vh;
        max-height: 65vh;
        aspect-ratio: auto;
    }

    .about-intro-name {
        font-size: 2.3rem;
    }

    .about-editorial {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 38px 0;
    }

    .about-editorial-index {
        gap: 4px;
    }

    .about-editorial-index span {
        font-size: 2.2rem;
    }

    .about-editorial-index h2 {
        font-size: 1.15rem;
    }

    .about-editorial-content {
        padding-left: 0;
    }

    .skill-group {
        margin-top: 20px;
    }

    .about-workflow {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 38px;
    }

    .about-workflow-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-left: 0;
    }

    .about-workflow-card {
        min-height: 0;
    }

    .about-new-wrap {
        grid-template-columns: 1fr;
    }

    .about-new-portrait-wrap {
        width: min(100%, 420px);
        margin: 0 auto;
    }

    .about-new-meta {
        grid-template-columns: 1fr;
    }

    .tools-categories {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-footer-wrap {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-footer-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 0;
    }

    .contact-footer-bottom-row {
        font-size: 0.64rem;
        letter-spacing: 0.1em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-new-bg-shape,
    .about-new-blob {
        animation: none;
        transition: none;
    }

    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 760px) {
    .home-page .about-editorial-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-page .about-photo {
        justify-self: start;
        width: min(100%, 520px);
    }

    .home-page .about-lower-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-page .programs-section .tools-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .home-page .about-label,
    .home-page .programs-kicker {
        letter-spacing: 0.14em;
    }

    .home-page .about-simple h2 {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }

    .home-page .about-meta-bar {
        gap: 10px 14px;
        letter-spacing: 0.12em;
    }
}
/* Shared section alignment; the hero keeps its existing dimensions. */
:is(.home-page, .shared-site) .site-header .header-inner,
.home-page .projekter > .container,
.home-page .about-section > .container,
.home-page .programs-section > .container,
:is(.home-page, .shared-site) .contact-section > .container,
:is(.home-page, .shared-site) .site-footer > .container {
    width: calc(100% - clamp(40px, 6.8vw, 132px));
    max-width: 1440px;
}

:is(.home-page, .shared-site) .text-logo {
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    white-space: nowrap;
}

:is(.home-page, .shared-site) .site-header:not(.scrolled):not(.menu-open) .text-logo {
    color: #fff;
}

.home-page .projects-header {
    margin-bottom: 28px;
    text-align: left;
}

.home-page .projects-kicker {
    margin: 0 0 12px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--text-dark);
}

.home-page .projects-heading,
.home-page .about-simple h2,
:is(.home-page, .shared-site) .contact-copy h2 {
    margin: 0 0 24px;
    padding: 0;
    transform: none;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.75rem, 5vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.home-page .about-section {
    padding-bottom: clamp(64px, 7vw, 96px);
}

.home-page #projekter,
.home-page #om-mig,
.home-page #kontakt {
    scroll-margin-top: 80px;
}

/* Biography: strong type, quiet labels and open spacing. */
.home-page .about-simple h2 {
    font-size: clamp(40px, 4vw, 56px);
}

.home-page .about-simple-copy > .about-intro {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(20px, 1.6vw, 22px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.025em;
}

.home-page .about-simple {
    align-items: start;
}

.home-page .about-simple-copy {
    max-width: 510px;
    width: 100%;
    margin: 0;
    padding-top: clamp(8px, 1.5vw, 24px);
}

.home-page .about-simple-copy > p:not(.section-kicker):not(.about-intro) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(17px, 1.2vw, 18px);
    line-height: 1.75;
}

.home-page .section-kicker,
.home-page .about-simple-copy > .section-kicker,
.home-page .about-meta dt {
    margin: 0 0 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dark);
}

.home-page .about-cv-button {
    border-radius: 0;
    margin-top: 28px;
    font-family: 'Manrope', sans-serif;
}

.home-page .about-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.home-page .about-meta dt {
    margin-bottom: 8px;
    font-size: 0.65rem;
}

.home-page .about-meta dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-dark);
}

.home-page .programs-section .about-programs-label {
    font-size: clamp(22px, 2vw, 26px);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
}

:is(.home-page, .shared-site) .contact-copy {
    max-width: 540px;
}

@media (max-width: 760px) {
    .home-page .about-simple-copy {
        padding-top: 0;
    }
}

@media (max-width: 520px) {
    .home-page .about-meta {
        gap: 12px;
    }

    .home-page .about-meta dd {
        font-size: 0.8rem;
        overflow-wrap: anywhere;
    }

    .home-page .about-meta dt {
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }
}


/* One-time scroll reveal; translate preserves existing transforms. */
.reveal {
    --reveal-delay: 0ms;
}

.reveal-delay-1 { --reveal-delay: 120ms; }
.reveal-delay-2 { --reveal-delay: 240ms; }
.reveal-delay-3 { --reveal-delay: 360ms; }
.reveal-delay-4 { --reveal-delay: 480ms; }
.reveal-delay-5 { --reveal-delay: 600ms; }
.reveal-delay-6 { --reveal-delay: 720ms; }
.reveal-delay-7 { --reveal-delay: 840ms; }
.reveal-delay-8 { --reveal-delay: 960ms; }

@media (prefers-reduced-motion: no-preference) {
    .reveal-enabled .reveal {
        opacity: 0;
        translate: 0 40px;
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
                    translate 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay);
    }

    .reveal-enabled .reveal.active {
        opacity: 1;
        translate: 0 0;
    }

    .reveal-enabled .reveal:focus-within {
        opacity: 1;
        translate: 0 0;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-enabled .reveal {
        opacity: 1;
        translate: none;
        transition: none;
    }
}

/* Hero intro runs once on page load, independently of scroll reveal. */
@keyframes hero-intro-zoom {
    from { scale: 1.04; }
    to { scale: 1; }
}

@keyframes hero-intro-enter {
    from {
        opacity: 0;
        translate: 0 25px;
    }
    to {
        opacity: var(--hero-intro-opacity, 1);
        translate: 0 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .home-page .hero-split .hero-image {
        animation: hero-intro-zoom 2s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .home-page .hero-split .hero-intro {
        animation: hero-intro-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 100ms;
    }

    .home-page .hero-split .hero-intro-2 { animation-delay: 230ms; }
    .home-page .hero-split .hero-intro-3 { animation-delay: 360ms; }
    .home-page .hero-split .hero-intro-4 { animation-delay: 490ms; }
    .home-page .hero-split .hero-intro:focus-visible {
        animation: none;
    }
}



/* Shared typography and spacing across the portfolio. */
:root {
    --type-body: clamp(17px, 1.2vw, 18px);
    --type-section: clamp(32px, 3.5vw, 48px);
    --type-display: clamp(40px, 4.5vw, 64px);
    --space-section: clamp(28px, 3vw, 40px);
    --space-heading: 18px;
    --space-paragraph: 16px;
}

body { font-family: 'Manrope', sans-serif; }

.home-page .projects-heading,
.home-page .about-new-copy h2,
.contact-footer-top h2 {
    font-family: 'Manrope', sans-serif;
    font-size: var(--type-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

body.praeg-page .case-section .case-text h2,
.about-page .about-editorial-index h2,
.about-page .about-workflow-index h2 {
    margin-bottom: var(--space-heading);
    font-family: 'Manrope', sans-serif;
    font-size: var(--type-section);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

body.praeg-page .case-section .case-text p,
body.praeg-page .case-section .case-list,
.about-page .about-editorial-content p,
.about-page .about-intro-copy p:last-child,
.home-page .about-new-copy p {
    font-size: var(--type-body);
    line-height: 1.75;
}

body.praeg-page .case-section .case-text p {
    margin: 0 0 var(--space-paragraph);
}
body.praeg-page .case-section .case-text p:last-child {
    margin-bottom: 0;
}

body.praeg-page .case-section,
.about-page .about-editorial,
.about-page .about-workflow {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}
body.praeg-page .praeg-case-hero + .case-section {
    padding-top: var(--space-section);
}

.about-page .about-editorial-content {
    margin-left: 0;
    max-width: 720px;
}
.about-page .about-editorial-index {
    margin-bottom: 0;
}
.about-page .about-editorial-content p {
    margin-bottom: var(--space-paragraph);
}
.about-page .about-editorial-content p:last-child {
    margin-bottom: 0;
}

body.praeg-page .case-results-gallery,
body.praeg-page .single-case-result {
    margin-top: clamp(22px, 2vw, 28px);
}
body.praeg-page .case-gallery {
    gap: clamp(24px, 3vw, 40px);
}

/* Tighter section rhythm, keeping hero proportions and text sizes. */
.home-page .projekter {
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: var(--space-section);
}
.home-page .projects-header {
    margin-bottom: var(--space-heading);
}
.home-page .projects-heading {
    margin-bottom: 0;
}
.home-page .about-new-section {
    padding-top: var(--space-section);
    padding-bottom: 12px;
}
.home-page .about-new-copy p {
    margin-top: 18px;
}
.home-page .about-new-button {
    margin-top: 22px;
}
.contact-footer-section {
    padding-block: clamp(40px, 5vw, 64px);
}
.about-contact-section {
    padding-top: var(--space-section);
}
body.praeg-page .case-gallery {
    gap: clamp(18px, 2vw, 28px);
}

/* Center case content and result galleries, with left-aligned headings. */
body.praeg-page .case-section .case-standalone-text {
    width: min(100%, 760px);
    margin-inline: auto;
    padding-inline: 0;
    text-align: left;
}
body.praeg-page .case-section .case-text h2 {
    text-align: left;
}
body.praeg-page .case-results-gallery,
body.praeg-page .single-case-result,
body.praeg-page .praeg-result-grid,
body.praeg-page .plastic-result-grid {
    max-width: 960px;
    margin-inline: auto;
}
body.praeg-page .case-result-image {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
}
body.praeg-page .praeg-result-grid .case-result-image {
    width: 100%;
    margin-inline: 0;
}
body.praeg-page .case-results-gallery img,
body.praeg-page .single-case-result img {
    display: block;
    margin-inline: auto;
}

/* Center the reading columns on the About page. */
.about-page .about-editorial-content,
.about-page .about-editorial-index {
    width: min(100%, 720px);
    margin-inline: auto;
}
.about-page .about-hero__content > h1,
.about-page .about-hero__content > p {
    width: min(100%, 520px);
    margin-inline: auto;
}

/* The shared glass header stays readable over light case-page heroes. */
.shared-site .site-header,
.shared-site .site-header:not(.scrolled):not(.menu-open) {
    background: rgba(247, 246, 242, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.shared-site .site-header:not(.scrolled):not(.menu-open) nav a,
.shared-site .site-header:not(.scrolled):not(.menu-open) .text-logo,
.shared-site .site-header:not(.scrolled):not(.menu-open) .menu-toggle {
    color: var(--text-dark);
}
.shared-site #kontakt { scroll-margin-top: 80px; }

/* Plastic Change uses the same full-bleed hero layout as To Do. */
body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .praeg-case-hero {
    position: relative;
    width: 100vw;
    max-width: none;
    height: auto;
    min-height: 80vh;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
}

body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .praeg-case-hero-inner {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 80vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}

body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .praeg-case-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 460px;
    margin-left: 6vw;
    top: auto;
    transform: none;
    width: min(460px, 88vw);
    padding: 120px 0 64px;
}

body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .praeg-case-hero-copy h1 {
    margin: 0 0 56px;
    color: var(--text-dark);
    font-size: clamp(2.5rem, 5vw, 5rem);
    white-space: nowrap;
    line-height: 0.9;
    letter-spacing: -0.065em;
}

body.tomrer-page .praeg-case-hero-copy h1 {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .praeg-case-meta {
    display: grid;
    gap: 16px;
    margin: 0;
}

body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .praeg-case-meta dt {
    margin-bottom: 5px;
    color: rgba(20, 34, 49, 0.7);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
}

body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .praeg-case-meta dd {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.5;
}

/* Keep the tool list compact while the title stays on one line. */
body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .praeg-case-meta .skill-pills {
    max-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .praeg-case-links {
    margin-top: 28px;
}

body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .project-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .project-link[href]:hover,
body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .project-link[href]:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .praeg-case-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    z-index: 0;
}

body:is(.plastic-page, .carlsberg-page, .abba-page, .tomrer-page, .milk-bean-page) .praeg-case-hero-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: none;
    filter: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    max-width: none;
}


/* ABBA mobile: crop the existing composite around the phone. */
@media (max-width: 767px) {
    body.abba-page main { padding-top: 0; }
    body.abba-page .praeg-case-hero {
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        overflow: hidden;
    }
    body.abba-page .praeg-case-hero-inner {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0 0 330px;
    }
    body.abba-page .praeg-case-hero-copy {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 100px 24px 24px;
        transform: none;
    }
    body.abba-page .praeg-case-hero-copy h1 {
        font-size: clamp(44px, 12vw, 64px);
        line-height: 1;
        white-space: normal;
        margin-bottom: 24px;
    }
    body.abba-page .praeg-case-meta {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    body.abba-page .praeg-case-links { margin-top: 20px; gap: 10px; }
    body.abba-page .praeg-case-hero-media {
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        overflow: hidden;
        transform: none;
        animation: none;
    }
    body.abba-page .praeg-case-hero-media img {
        width: 2000px;
        max-width: none;
        height: 1125px;
        inset: auto;
        left: calc(100% - 1210px);
        bottom: -245px;
        object-fit: contain;
        transform: none;
    }
}

/* Præg: pink product background with copy and mockup side by side. */
#praeg-hero {
    height: auto;
    min-height: 80vh;
    background: #fbe0ef;
    padding: 0;
    overflow: hidden;
}
#praeg-hero .praeg-case-hero-inner {
    width: calc(100% - clamp(40px, 8vw, 120px));
    max-width: 1500px;
    min-height: 80vh;
    height: auto;
    margin: 0 auto;
    padding: 112px 0 64px;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
}
#praeg-hero .praeg-case-hero-copy { transform: none; }
#praeg-hero h1 {
    margin: 0 0 56px;
    font-size: clamp(40px, 5vw, 80px);
    line-height: 0.95;
}
#praeg-hero .skill-pills { max-width: 340px; }
#praeg-hero .praeg-case-meta { gap: 16px; }
#praeg-hero .praeg-case-links { margin-top: 28px; }
#praeg-hero .project-link { color: var(--text-dark); font-weight: 600; text-decoration: none; }
#praeg-hero .project-link:hover { text-decoration: underline; text-underline-offset: 4px; }
#praeg-hero .praeg-case-hero-media {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    margin: 0;
    overflow: hidden;
}
/* The PNG has large transparent margins; frame the products themselves. */
#praeg-hero .praeg-case-hero-media img {
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    max-width: none;
    height: auto;
    transform: translateY(-39%);
    object-fit: contain;
}
@media (max-width: 760px) {
    #praeg-hero .praeg-case-hero-inner {
        grid-template-columns: 1fr;
        padding: 112px 0 40px;
        gap: 40px;
    }
}

/* Match the two case heroes while allowing room on small screens. */
@media (min-width: 761px) {
    #praeg-hero,
    body:is(.plastic-page, .carlsberg-page, .tomrer-page, .milk-bean-page) .praeg-case-hero {
        height: max(80vh, 600px);
        min-height: 0;
    }
    #praeg-hero .praeg-case-hero-inner,
    body:is(.plastic-page, .carlsberg-page, .tomrer-page, .milk-bean-page) .praeg-case-hero-inner {
        height: 100%;
        min-height: 0;
    }
}
@media (max-width: 760px) {
    #praeg-hero,
    #praeg-hero .praeg-case-hero-inner {
        min-height: 90vh;
    }
}

@media (min-width: 768px) {
    body.abba-page .praeg-case-hero { height: max(80vh, 600px); min-height: 0; }
    body.abba-page .praeg-case-hero-inner { height: 100%; min-height: 0; }
}

/* Project mobile heroes: copy above a separately framed existing mockup. */
@media (max-width: 767px) {
    body:is(.to-do-page, .plastic-page, .carlsberg-page, .tomrer-page, .milk-bean-page) .praeg-case-hero,
    #praeg-hero {
        width: 100%; height: auto; min-height: 0;
        margin: 0; padding: 0; overflow: hidden;
    }
    body:is(.to-do-page, .plastic-page, .carlsberg-page, .tomrer-page, .milk-bean-page) .praeg-case-hero {
        background-image: var(--mobile-hero-image);
        background-size: auto 2000px;
        background-position: left top;
    }
    body.to-do-page { --mobile-hero-image: url('todohero.png'); }
    body.plastic-page { --mobile-hero-image: url('plchero.jpeg'); }
    body.carlsberg-page { --mobile-hero-image: url('cnordhero.png'); }
    body.tomrer-page { --mobile-hero-image: url('hånværkerhero.jpeg'); }
    body.milk-bean-page { --mobile-hero-image: url('milk&beanhero.png'); }
    body:is(.to-do-page, .plastic-page, .carlsberg-page, .tomrer-page, .milk-bean-page) .praeg-case-hero-inner,
    #praeg-hero .praeg-case-hero-inner {
        display: flex; flex-direction: column; align-items: stretch;
        width: 100%; height: auto; min-height: 0;
        margin: 0; padding: 0; gap: 0;
    }
    body:is(.to-do-page, .plastic-page, .carlsberg-page, .tomrer-page, .milk-bean-page) .praeg-case-hero-copy,
    #praeg-hero .praeg-case-hero-copy {
        width: 100%; max-width: none; margin: 0;
        padding: 100px 24px 28px; transform: none;
    }
    body:is(.to-do-page, .plastic-page, .carlsberg-page, .tomrer-page, .milk-bean-page) .praeg-case-hero-copy h1,
    #praeg-hero h1 {
        font-size: clamp(40px, 11vw, 60px); line-height: 1.05;
        white-space: normal; overflow-wrap: anywhere; margin-bottom: 24px;
    }
    body:is(.to-do-page, .plastic-page, .carlsberg-page, .tomrer-page, .milk-bean-page) .praeg-case-meta,
    #praeg-hero .praeg-case-meta { grid-template-columns: 1fr; gap: 16px; }
    body:is(.to-do-page, .plastic-page, .carlsberg-page, .tomrer-page, .milk-bean-page) .praeg-case-links,
    #praeg-hero .praeg-case-links { margin-top: 20px; gap: 10px; }
    body:is(.to-do-page, .plastic-page, .carlsberg-page, .tomrer-page, .milk-bean-page) .praeg-case-hero-media {
        position: relative; inset: auto; width: 100%; height: 300px;
        margin: 0; overflow: hidden; transform: none; animation: none;
    }
    body:is(.to-do-page, .plastic-page, .carlsberg-page, .tomrer-page, .milk-bean-page) .praeg-case-hero-media img {
        inset: auto; width: 720px; max-width: none; height: 405px;
        right: 0; bottom: 0; object-fit: contain; transform: none;
    }
    body:is(.to-do-page, .plastic-page) .praeg-case-hero-copy {
        padding-bottom: 12px;
    }
    body:is(.to-do-page, .plastic-page) .praeg-case-hero-copy h1 {
        font-size: clamp(46px, 12.5vw, 64px);
        line-height: 1.02;
        margin-bottom: 28px;
        overflow-wrap: normal;
    }
    body:is(.to-do-page, .plastic-page) .praeg-case-meta {
        gap: 20px;
    }
    body:is(.to-do-page, .plastic-page) .praeg-case-links {
        margin-top: 24px;
        gap: 12px;
    }
    /* Frame the visible products, accounting for background inside each file. */
    body.to-do-page .praeg-case-hero-media { height: 310px; }
    body.to-do-page .praeg-case-hero-media img {
        width: 850px;
        height: 478.125px;
        right: calc(50% - 228px);
        bottom: -69px;
    }
    body.plastic-page .praeg-case-hero-media { height: 340px; }
    body.plastic-page .praeg-case-hero-media img {
        width: 960px;
        height: 540px;
        right: calc(50% - 289px);
        bottom: -90px;
    }
    body.tomrer-page .praeg-case-hero-media { height: 330px; }
    #praeg-hero .praeg-case-hero-media {
        width: calc(100% - 48px); margin: 0 24px 28px;
        aspect-ratio: 1.6; height: auto; transform: none; animation: none;
    }
}

/* A quiet next-project link after each case's results. */
.project-next-wrap {
    max-width: 960px;
    margin: 20px auto 40px;
}
.project-next-link {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: fit-content;
    margin-left: auto;
    text-align: right;
    gap: 8px;
    padding-block: 20px;
    color: var(--text-dark);
    text-decoration: none;
}
.project-next-label {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.project-next-name { display: block; font-size: 16px; font-weight: 600; }
.project-next-icon { font-size: 18px; transition: transform 0.25s ease; }
.project-next-link:hover .project-next-icon { transform: translateX(5px); }
.project-next-link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.carlsberg-result-video {
    display: block;
    width: 100%;
    height: auto;
    margin-inline: auto;
}

/* Unified Carlsberg gallery. */
.carlsberg-results {
    --gallery-gap: 28px;
    --gallery-radius: 0;
    max-width: 1100px;
    margin: 28px auto 0;
    display: grid;
    gap: var(--gallery-gap);
}
.carlsberg-device-results {
    display: grid;
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
    gap: var(--gallery-gap);
    align-items: stretch;
}
.carlsberg-device-results figure {
    position: relative;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--gallery-radius);
}
.carlsberg-device-results figure:first-child { aspect-ratio: 16 / 9; }
.carlsberg-device-results img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.carlsberg-video-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gallery-gap);
}
.carlsberg-video-frame {
    aspect-ratio: 16 / 9;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--gallery-radius);
    background: var(--text-dark);
}
.carlsberg-video-frame .carlsberg-result-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
@media (max-width: 650px) {
    .carlsberg-results { --gallery-gap: 24px; }
    .carlsberg-device-results,
    .carlsberg-video-results { grid-template-columns: 1fr; }
    .carlsberg-device-results figure { aspect-ratio: 16 / 9; }
    .carlsberg-device-results figure:nth-child(2) { aspect-ratio: 5 / 4; }
}

/* Præg gallery: website first, flyer and Reel paired below. */
.praeg-gallery {
    max-width: 1100px;
    margin: 28px auto 0;
    display: grid;
    gap: 28px;
}
.praeg-gallery figure { margin: 0; min-width: 0; overflow: hidden; border-radius: 0; }
.praeg-gallery-website img { display: block; width: 100%; height: auto; }
.praeg-gallery-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}
.praeg-gallery-flyer { position: relative; aspect-ratio: 2697 / 1843; }
.praeg-gallery-flyer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.praeg-gallery-reel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 0;
    background: #f4f5f7;
}
.praeg-gallery-reel iframe {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    border: 0;
    display: block;
}
@media (max-width: 650px) {
    .praeg-gallery, .praeg-gallery-row { gap: 24px; }
    .praeg-gallery-row { grid-template-columns: 1fr; }
    .praeg-gallery-reel { height: clamp(320px, 100vw, 480px); }
}

/* Plastic Change: poster-led presentation with a full, vertical video. */
body.plastic-page .plastic-result-grid {
    width: 100%;
    max-width: 1100px;
    margin: 28px auto 0;
    grid-template-columns: minmax(0, 62fr) minmax(0, 32fr);
    gap: clamp(24px, 2.5vw, 30px);
    align-items: start;
}
body.plastic-page .plastic-result-grid figure {
    min-width: 0;
    margin: 0;
}
body.plastic-page .plastic-result-grid video {
    width: 100%;
    height: auto;
    object-fit: contain;
    align-self: start;
}
@media (max-width: 760px) {
    body.plastic-page .plastic-result-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Light text keeps the carpenter hero readable over its dark photograph. */
body.tomrer-page .praeg-case-meta .skill-pill {
    color: #fff;
}

body.tomrer-page .praeg-case-hero-copy h1,
body.tomrer-page .praeg-case-meta dt,
body.tomrer-page .praeg-case-meta dd,
body.tomrer-page .praeg-case-hero .project-link {
    color: #f7f6f2;
}

/* Display typography: keep body copy and smaller text in Manrope. */
.home-page .hero-split h1,
.home-page .projects-heading,
.home-page .about-simple h2,
.home-page .about-new-copy h2,
.praeg-case-hero-copy h1,
.case-title-section h1,
body.praeg-page .case-section .case-text h2,
.case-visual-process h2,
.about-intro-name,
.about-page-name,
.about-page .about-editorial-index h2,
.about-page .about-workflow-index h2,
:is(.home-page, .shared-site) .contact-copy h2,
.about-contact-copy h2,
.contact-footer-top h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* Explicit hero title fonts, including the name's nested spans. */
body.home-page .hero-split h1,
body.home-page .hero-split h1 .hero-name-line,
body.case-page .praeg-case-hero-copy h1,
#praeg-hero .praeg-case-hero-copy h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* Move existing wrappers; image crop transforms and intro animations stay on children. */
.about-page .about-hero {
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    body.home-page .hero-split .hero-text,
    body.case-page .praeg-case-hero-copy,
    #praeg-hero .praeg-case-hero-copy,
    body.about-page .about-hero__content > * {
        transform: translate3d(0, var(--hero-scroll-text-y, 0px), 0);
        opacity: var(--hero-scroll-opacity, 1);
    }

    body.home-page .hero-split .hero-image,
    body.case-page .praeg-case-hero-media,
    #praeg-hero .praeg-case-hero-media,
    body.about-page .about-hero__image {
        transform: translate3d(0, var(--hero-scroll-media-y, 0px), 0);
    }

    body.home-page .hero-split .hero-text:focus-within,
    body.case-page .praeg-case-hero-copy:focus-within {
        opacity: 1;
    }
}

/* Subpage entrance uses translate/scale, leaving scroll's transform independent. */
@keyframes subpage-hero-enter {
    from { opacity: 0; translate: 0 18px; }
    to { opacity: var(--hero-scroll-opacity, 1); translate: 0 0; }
}

@keyframes subpage-hero-media-enter {
    from { opacity: 0.7; scale: 1.025; }
    to { opacity: 1; scale: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    body.case-page .praeg-case-hero-copy > *,
    body.about-page .about-hero__content > * {
        animation: subpage-hero-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
    }

    body.case-page .praeg-case-hero-copy > :nth-child(2),
    body.about-page .about-hero__content > :nth-child(2) {
        animation-delay: 0.2s;
    }

    body.case-page .praeg-case-hero-copy > :nth-child(3) {
        animation-delay: 0.3s;
    }

    body.case-page .praeg-case-hero-media,
    body.about-page .about-hero__image {
        animation: subpage-hero-media-enter 1.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    body.case-page .praeg-case-hero-copy > :focus-within {
        animation: none;
    }
}

/* ABBA results: four natural-height groups without cropping. */
.abba-page .abba-results {
    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0;
}
.abba-page .abba-results figure {
    margin: 0;
    height: auto;
    min-height: 0;
    min-width: 0;
    padding: 0;
}
.abba-page .abba-results img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}
.abba-page .abba-results .abba-results-website {
    width: 100%;
    align-self: center;
}
.abba-page .abba-results-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    align-items: start;
}
.abba-page .abba-results-phone { min-width: 0; padding-top: 0; }
.abba-page .abba-results .abba-results-spotify {
    width: 100%;
    align-self: center;
}
.abba-page .project-next-wrap {
    max-width: 1100px;
    margin: 40px auto 64px;
}
.abba-page .project-next-link {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding-block: 16px;
}
@media (max-width: 760px) {
    .abba-page .abba-results {
        gap: 32px;
        margin-top: 32px;
    }
    .abba-page .abba-results-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .abba-page .abba-results-phone { padding-top: 0; }
    .abba-page .abba-results .abba-results-website,
    .abba-page .abba-results .abba-results-spotify { width: 100%; }
    .abba-page .project-next-wrap { margin-block: 24px 40px; }
}

/* About page: preserve the split hero, with a readable column and mobile stacking. */
body.about-page .site-header .header-inner { min-height: 64px; }
body.about-page .about-page-main { padding-top: 64px; }
body.about-page .about-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: clamp(620px, 78vh, 820px);
}
body.about-page .about-hero__content {
    min-width: 0;
    justify-content: center;
    padding: clamp(48px, 5vw, 80px) clamp(28px, 4vw, 64px);
}
body.about-page .about-hero__content > h1,
body.about-page .about-hero__content > p {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
}
body.about-page .about-hero-cv {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
}
body.about-page .about-hero-cv .about-cv-button {
    margin-top: var(--space-paragraph);
    border-radius: 999px;
}
body.about-page .about-hero__content > h1 {
    font-size: clamp(36px, 3.3vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}
body.about-page .about-hero__content > p {
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.75;
}
body.about-page .about-hero__content > p + p {
    margin-top: 24px;
}
body.about-page .about-hero__image {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: auto;
}
body.about-page .about-hero__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.about-page .about-editorial,
body.about-page .about-workflow { padding-block: var(--space-section); }
body.about-page #profil {
    padding-top: var(--space-section);
    scroll-margin-top: 88px;
}
body.about-page .about-editorial-content,
body.about-page .about-editorial-index,
body.about-page .about-workflow-grid {
    width: min(100%, 720px);
    margin-inline: auto;
}
body.about-page .about-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}
body.about-page .about-workflow-card {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
body.about-page .about-workflow-card:hover,
body.about-page .about-workflow-card:focus-within { transform: none; }
body.about-page .skill-pills { flex-wrap: wrap; }
body.about-page .contact-list a { overflow-wrap: anywhere; }

@media (max-width: 768px) {
    body.about-page .about-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }
    body.about-page .about-hero__image {
        order: -1;
        aspect-ratio: 4 / 3;
    }
    body.about-page .about-hero__content { padding: 40px 24px 48px; }
    body.about-page .about-hero__content > h1 {
        font-size: clamp(28px, 7.5vw, 42px);
        overflow-wrap: anywhere;
    }
    body.about-page .about-editorial.container,
    body.about-page .about-workflow.container {
        width: calc(100% - 48px);
        padding-block: var(--space-section);
    }
    body.about-page #profil { padding-top: var(--space-section); }
    body.about-page .about-workflow-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    body.about-page .about-workflow.container { padding-bottom: 56px; }
}
