/*! ============================================================
   Copyright © 2026 SAA Graphics ApS. Alle rettigheder forbeholdes.
   saagraphics.com

   Koden ligger frit læsbar, fordi den kører i browseren.
   Det gør den ikke fri at bruge. Kopiering, ændring og
   videredistribution kræver skriftlig tilladelse.
   ============================================================ */

@font-face {
    font-family: "Kanit";
    src: url("../fonts/Kanit-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Kanit";
    src: url("../fonts/Kanit-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Kanit";
    src: url("../fonts/Kanit-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Google Sans Code";
    src: url("../fonts/others/GoogleSansCode-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Google Sans Code";
    src: url("../fonts/others/GoogleSansCode-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-black:            #000;
    --color-black-alt:        #1a2421;
    --color-antique-white:    #faebd7;
    --color-slate:            #36454f;
    --color-slate-overlay:    #36454f6f;
    --color-red-dark:         rgb(30 3 5 / 0.9);
    --color-input-line:       #1a242175;
    --color-input-background: #40393f1f;
    --color-feedback-error:   #ffc2b3;
    --color-form-field:       color-mix(in srgb, var(--color-antique-white) 8%, transparent);
    --color-form-line:        color-mix(in srgb, var(--color-antique-white) 60%, transparent);
    --color-form-placeholder: color-mix(in srgb, var(--color-antique-white) 75%, transparent);

    --color-projekter:     #4e3556;
    --color-projekter-light: #c5aecd;
    --color-uiux:          #9d96b8;
    --color-uiux-dark:     #372f51;
    --color-uiux-light:    #d2cee3;
    --color-uiux-pale:     #ebe8f2;
    --color-programmering: #070b2b;
    --color-programmering-light: #cfdae0;
    --color-programmering-mid: #222a51;
    --color-kontakt:       #741e48;
    --color-om-os:         #3e3856;
    --color-social-fordeling: #593752;

    --font-primary:   "Kanit", sans-serif;
    --font-secondary: "lft-etica-mono", monospace;

    --font-size-h2: 2rem;
    --font-size-p:  1.8rem;

    --page-gutter: clamp(1.5rem, 8vw, 10rem);
    --target-size: max(44px, 2.75rem);

    --footer-height: 228px;

    @media (width <= 1680px) { --footer-height: 180px; }
    @media (width <= 1366px) { --footer-height: 130px; }
    @media (width <= 1024px) { --footer-height: 100px; }
    @media (width <= 768px)  { --footer-height: 110px; }
    @media (width <= 576px)  { --footer-height: 100px; }
    @media (width <= 414px)  { --footer-height: 60px; }
    @media (width <= 350px)  { --footer-height: 50px; }

    --edge-space:    34px;
    --menu-circle:   60px;
    --text-edge:     calc(var(--edge-space) * 2 + var(--menu-circle));
    --navbar-height: 168px;

    @media (width < 1280px)  { --navbar-height: calc(4 * 1.4 * var(--font-size-h2) + 3rem); }
    @media (width <= 1024px) { --menu-circle: 46px; }
    @media (width <= 414px)  { --menu-circle: 36px; }

    --top-space: max(clamp(4rem, 14vh, 9rem), calc(var(--navbar-height) + 2rem));

    @media (pointer: coarse) and (orientation: portrait) {
        --text-edge: var(--page-gutter);
        --top-space: calc(var(--header-bottom, 6rem) + clamp(1rem, 3svh, 2rem));
    }

    @media (pointer: coarse) and (orientation: landscape) and (height < 40rem) {
        --top-space: calc(var(--header-bottom, 6rem) + clamp(1rem, 3svh, 2rem));
    }
}

* {
    margin: 0;
    padding: 0;
    max-width: 1920px;
}

body {
    box-sizing: border-box;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
    cursor: default;
}

html {
    margin: 0 auto;
    font-family: var(--font-primary);
    font-size: 100%;
    box-sizing: border-box;
    background-color: var(--color-black);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.resize-visualize-output {
    background-color: rgb(183 18 18 / 0.8);
    color: #fff;
    position: fixed;
    z-index: 1900;
    width: 100%;
}

.header {
    position: fixed;
    z-index: 300;
}

.header-logo {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 1.5rem;
    z-index: 20;
    position: absolute;
}

.header-logo-img {
    display: flex;
    width: 120px;

    @media (width <= 1024px) { width: 110px; }
    @media (width <= 768px)  { width: 100px; }
    @media (width <= 576px)  { width: 80px; }
    @media (width <= 414px)  { width: 60px; }

    @media (pointer: coarse) and (orientation: landscape) and (height < 40rem) {
        width: 16svh;
    }
}

.navbar {
    position: fixed;
}

.navbar-navigation {
    display: none;
}

.navbar-navigation-list {
    width: 100vw;
    background-color: var(--color-slate-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    height: 120px;

    @media (width <= 1366px) {
        display: block;
        text-align: center;
        margin: 0 auto;
        height: 165px;
    }
    @media (width <= 1024px) { height: 135px; }
    @media (width <= 768px)  { height: 110px; }
    @media (width <= 576px)  { height: 95px; }
    @media (width <= 414px)  { height: 80px; }
    @media (width <= 350px)  { height: 60px; }
}

.navbar-navigation-list-item {
    list-style: none;
}

.navbar-navigation-list-link {
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: var(--font-size-h2);
    color: var(--menu-tone-color, var(--color-black));
    margin-right: 2rem;
    line-height: 140%;

    @media (width <= 1024px) { margin-right: 0; }

    @media (pointer: coarse) {
        font-size: clamp(1.25rem, 6vw, var(--font-size-h2));
    }

    &:hover {
        border-bottom: 0.2px solid var(--menu-tone-color, var(--color-red-dark));
    }

    &::before {
        content: attr(data-hover);
        visibility: hidden;
        opacity: 0;
        padding: 1rem;
        font-size: 1.2rem;
        text-align: center;
        color: var(--color-antique-white);
        transition: opacity 1.5s ease-in-out;
        margin-top: 1.1rem;
        position: absolute;

        @media (width <= 768px) { display: none; }
    }

    &:hover::before {
        opacity: 1;
        visibility: visible;
        color: var(--color-black-alt);
    }
}

.checkbox:checked ~ .navbar-navigation {
    display: flex;
    transition: 0.5s ease-in;
}

.checkbox:checked ~ .menu .menu-line-1 {
    transform: rotateZ(-33deg);
}

.checkbox:checked ~ .menu .menu-line-2 {
    transform: rotateZ(360deg);
}

.checkbox:checked ~ .menu .menu-line-3 {
    transform: rotateZ(33deg);
}

.menu {
    width: 50px;
    height: 50px;
    position: fixed;
    top: 0;
    right: 1.5rem;
    padding: 2.5rem;
    z-index: 50;

    @media (width <= 1024px) {
        width: 40px;
        height: 40px;
    }
    @media (width <= 414px) {
        width: 30px;
        height: 30px;
    }

    @media (hover: hover) {
        &:hover {
            border-bottom: 0.2px solid var(--menu-tone-color, var(--color-red-dark));
        }
    }
}

.menu .menu {
    cursor: pointer;
}

.menu-button {
    box-sizing: content-box;
    appearance: none;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;

    &[aria-expanded="true"] .menu-line-1 { transform: rotateZ(-33deg); }
    &[aria-expanded="true"] .menu-line-2 { transform: rotateZ(360deg); }
    &[aria-expanded="true"] .menu-line-3 { transform: rotateZ(33deg); }

    &:focus-visible {
        outline: 3px solid var(--menu-tone-color, var(--color-black));
        outline-offset: -1.25rem;
    }
}

.navbar:has(.menu-button[aria-expanded="true"]) .navbar-navigation {
    display: flex;
    transition: 0.5s ease-in;
}

.navbar[data-menu-tone="dark"] {
    --menu-tone-color: var(--color-antique-white);
}

.menu .menu-line {
    display: block;
    width: 120%;
    height: 4px;
    background-color: var(--menu-tone-color, var(--color-black));
    transform-origin: right;
    transition: 0.5s ease-in;

    @media (width <= 1024px) { height: 3.5px; }
    @media (width <= 414px)  { height: 2.5px; }

    @media (prefers-reduced-motion: reduce) { transition: none; }
}

.menu .menu-line-2 {
    width: 100%;
    height: 50px;
    background-color: transparent;
    border: 5px solid var(--menu-tone-color, var(--color-black));
    clip-path: circle(50% at 50% 50%);

    @media (width <= 1024px) {
        height: 40px;
        border-width: 3px;
    }
    @media (width <= 414px) {
        height: 30px;
    }
}

main > :is(.frontpage-top, .category-section-pagetop, .kontakt-top) {
    @media (prefers-reduced-motion: no-preference) and (height >= 43rem) {
        position: sticky;
        top: 0;

        @media (pointer: coarse) and (orientation: portrait) {
            top: min(0px, 100svh - var(--page-top-height, 0px));
        }

        & ~ * {
            position: relative;
        }
    }
}

.frontpage-top {
    position: relative;
    isolation: isolate;
    clip-path: inset(0);
    display: grid;
    grid-template-rows: 1fr auto 2fr;
    justify-items: center;
    min-height: 100svh;

    &::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background-image:
            url("../images/design/watercolor.jpg"),
            linear-gradient(#915aa0 10%, #9259a6 30%, #855bcb 50%, #6840ce 70%, #6545cd 90%);
        background-position: center;
        background-size: cover;
    }

    @media (prefers-reduced-motion: reduce) {
        &::before { position: absolute; }
    }
}

.frontpage-top-logos {
    grid-row: 3;
    display: grid;
    width: clamp(9rem, 18vw, 15rem);
}

.frontpage-top-logo {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;

    &:nth-child(2) {
        opacity: 0;
    }

    @media (prefers-reduced-motion: no-preference) {
        &:nth-child(1) { animation: logoFirst 4.8s ease-in-out; }
        &:nth-child(2) { animation: logoSecond 4.8s ease-in-out; }
    }
}

@keyframes logoFirst {
    0%, 29%  { opacity: 1; }
    46%, 83% { opacity: 0; }
    100%     { opacity: 1; }
}

@keyframes logoSecond {
    0%, 29%  { opacity: 0; }
    46%, 83% { opacity: 1; }
    100%     { opacity: 0; }
}

.frontpage-intro {
    padding-block: clamp(3rem, 10vh, 6rem);
    padding-inline: var(--page-gutter) var(--text-edge);
    background-color: var(--color-black-alt);
    color: var(--color-antique-white);
    text-align: right;
}

.frontpage-intro-heading {
    max-width: 100%;
    height: clamp(2.5rem, 5vw, 4.5rem);
    aspect-ratio: 1034 / 135;
    margin: 0 0 1.5rem auto;
    background-color: var(--color-antique-white);
    mask: url("../images/design/heading-forside.png") center / 100% 100% no-repeat;

    @media (prefers-reduced-motion: no-preference) {
        animation: introHeadingShift 5s ease-in-out infinite alternate;
    }
}

@keyframes introHeadingShift {
    to { background-color: #cfe0d8; }
}

.frontpage-intro-text {
    font-family: var(--font-secondary);
    font-size: clamp(1.1rem, 1.6vw, 1.6rem);
    line-height: 1.5;

    @media (pointer: coarse) {
        text-wrap: balance;
    }
}

.frontpage-watercolor {
    --watercolor-height: 100svh;
    position: relative;
    isolation: isolate;
    clip-path: inset(0);
    height: var(--watercolor-height);
    view-timeline-name: --watercolor;
    view-timeline-axis: block;

    &::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background-image: url("../images/design/watercolor_2.jpg");
        background-position: center;
        background-size: cover;
    }

    @media (prefers-reduced-motion: reduce) {
        &::before { position: absolute; }
    }
}

.frontpage-watercolor-words {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;

    @media (prefers-reduced-motion: reduce) {
        position: absolute;
    }
}

.frontpage-watercolor-word {
    --word-width: min(50vw, 960px);
    --word-height: calc(var(--word-width) / (var(--word-ratio)));
    --word-fade: 25vh;
    --word-reveal-start: calc(50vh - var(--word-height) / 2 - var(--word-offset-y));
    --word-hide-end: calc(50vh + var(--watercolor-height) + var(--word-height) / 2 - var(--word-offset-y));
    grid-area: 1 / 1;
    width: var(--word-width);
    aspect-ratio: var(--word-ratio);
    background-color: var(--word-color);
    mask: var(--word-mask) center / 100% 100% no-repeat;
    translate: var(--word-offset-x) var(--word-offset-y);
    opacity: var(--word-opacity, 0);

    @supports (animation-timeline: view()) {
        @media (prefers-reduced-motion: no-preference) {
            animation-name: watercolorWordIn, watercolorWordOut;
            animation-duration: auto;
            animation-timing-function: linear;
            animation-fill-mode: both, forwards;
            animation-timeline: --watercolor;
            animation-range:
                cover var(--word-reveal-start) cover calc(var(--word-reveal-start) + var(--word-fade)),
                cover calc(var(--word-hide-end) - var(--word-fade)) cover var(--word-hide-end);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        opacity: 1;
    }
}

@keyframes watercolorWordIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes watercolorWordOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.frontpage-watercolor-projekter {
    --word-ratio: 1863 / 349;
    --word-color: #492257;
    --word-mask: url("../images/design/heading-projekter.png");
    --word-offset-x: 10vw;
    --word-offset-y: -9.7vw;
}

.frontpage-watercolor-uiux {
    --word-ratio: 864 / 350;
    --word-color: #3e226a;
    --word-mask: url("../images/design/heading-uiux.png");
    --word-offset-x: 0vw;
    --word-offset-y: 0vw;
}

.frontpage-watercolor-programmering {
    --word-ratio: 1920 / 190;
    --word-color: #371f77;
    --word-mask: url("../images/design/heading-programmering.png");
    --word-offset-x: -10vw;
    --word-offset-y: 10.4vw;
}

.category-section,
.uiux-gallery,
.dagensord-section {
    position: relative;
    isolation: isolate;
    clip-path: inset(0);

    &::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background-image: var(--section-texture);
        background-position: center;
        background-size: cover;
        opacity: var(--section-texture-opacity);
        filter: var(--section-texture-filter, invert(1));
        pointer-events: none;

        @media (pointer: coarse) and (orientation: portrait) {
            inset: auto;
            top: 100svh;
            left: 0;
            width: 100svh;
            height: 100vw;
            transform-origin: 0 0;
            rotate: 270deg;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        &::before { position: absolute; }
    }
}

.category-section {
    padding-block: clamp(4rem, 14vh, 9rem);
    padding-inline: var(--page-gutter) var(--text-edge);
    background-color: var(--section-color);
    color: var(--section-text);

    @media (pointer: coarse) and (orientation: portrait) {
        padding-block: clamp(2.5rem, 8svh, 5rem);
    }
}

main > .category-section:last-child {
    box-sizing: border-box;
    display: grid;
    align-content: center;
    min-height: calc(100svh - var(--footer-height));
    padding-top: var(--top-space);
}

.category-section-inner {
    container-type: inline-size;
    display: grid;
    justify-items: end;
    gap: 1.5rem;
    width: 100%;
    max-width: 1600px;
    margin-inline-start: auto;
    text-align: right;
}

.category-section-heading {
    height: min(clamp(3rem, 6.5vw, 7rem), calc(100cqi / (var(--heading-ratio))));
    aspect-ratio: var(--heading-ratio);
    background-color: var(--heading-color);
    mask: var(--heading-mask) center / 100% 100% no-repeat;

    @media (prefers-reduced-motion: no-preference) {
        animation: headingShift 5s ease-in-out infinite alternate;
    }
}

@keyframes headingShift {
    to { background-color: var(--heading-color-shift); }
}

.category-section-text {
    max-width: 46.5ch;
    font-family: var(--font-secondary);
    font-size: clamp(1.05rem, 1.4vw, 1.4rem);
    line-height: 1.55;

    @media (pointer: coarse) and (orientation: portrait) {
        text-wrap: balance;

        @container (width < 25rem) {
            & br {
                display: none;
            }
        }
    }
}

.category-section-list {
    max-width: 75ch;
    list-style: none;

    & > li {
        @media (pointer: coarse) {
            text-wrap: balance;
        }
    }
}

.category-section-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--target-size);
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    color: inherit;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
        text-underline-offset: 0.25em;
    }

    &:focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 4px;
    }
}

.new-tab-icon {
    width: 1rem;
    height: auto;
    opacity: 0.85;
    filter: brightness(1.08) drop-shadow(0 0 1px var(--color-black)) drop-shadow(0 0 0.2rem var(--color-black));

    a:is(:hover, :focus-visible) > & {
        opacity: 1;
    }

    .category-section-link > & {
        width: 1em;
        margin-left: 0.4em;
    }

    .footer-legal-file > & {
        width: 1rem;
    }

    .dagensord-button > & {
        opacity: 1;
        filter: none;
    }
}

.category-section-arrow {
    display: inline-block;
    width: 1.5em;
    aspect-ratio: 192 / 112;
    margin-left: 0.5em;
    background-color: currentColor;
    mask: url("../images/design/arrow.png") center / 100% auto no-repeat;
    scale: -1 1;
}

.category-section-compact {
    padding-block: clamp(2.5rem, 7vh, 4.5rem);

    & .category-section-inner {
        gap: 1rem;
    }

    & .category-section-heading {
        height: min(clamp(2rem, 3.5vw, 3.5rem), calc(100cqi / (var(--heading-ratio))));
    }

    & .category-section-text {
        max-width: 30rem;
        font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    }

    & .category-section-link {
        font-size: clamp(1rem, 1.2vw, 1.2rem);
    }
}

.category-section-group {
    --group-height: calc(100svh - var(--footer-height));
    --texture-unit: max(100vw / 1920, 100svh / 1080);
    --section-count: 2;

    display: grid;
    grid-auto-rows: 1fr;
    min-height: var(--group-height);

    &:has(> :nth-child(3)) {
        --section-count: 3;
    }

    & > :nth-child(1) { --section-index: 0; }
    & > :nth-child(2) { --section-index: 1; }
    & > :nth-child(3) { --section-index: 2; }

    & > .category-section::before {
        translate: 0 calc((var(--section-index) + 0.5) * var(--group-height) / var(--section-count) - 50svh + (540 - var(--section-texture-center)) * var(--texture-unit));

        @media (pointer: coarse) and (orientation: portrait) {
            top: 0;
            left: 0;
            width: 100vw;
            height: calc(var(--group-height) / var(--section-count));
            rotate: none;
            translate: 0 calc(var(--section-index) * var(--group-height) / var(--section-count));
        }

        @media (prefers-reduced-motion: reduce) {
            translate: none;
        }
    }

    & > .category-section-compact {
        display: grid;
        align-content: center;
        padding-block: clamp(0.5rem, 1.5vh, 2rem);
    }

    & .category-section-text {
        max-width: none;
    }
}

.category-section-projekter {
    --section-color: var(--color-projekter);
    --section-text: var(--color-antique-white);
    --section-texture: url("../images/design/texture-projekter.png");
    --section-texture-opacity: 0.08;
    --heading-mask: url("../images/design/heading-projekter.png");
    --heading-ratio: 1863 / 349;
    --heading-color: var(--color-antique-white);
    --heading-color-shift: #e4c9e9;
}

.category-section-uiux {
    --section-color: var(--color-uiux);
    --section-text: var(--color-black);
    --section-texture: url("../images/design/texture-uiux.png");
    --section-texture-opacity: 0.14;
    --section-texture-center: 540;
    --heading-mask: url("../images/design/heading-uiux.png");
    --heading-ratio: 864 / 350;
    --heading-color: var(--color-black);
    --heading-color-shift: #2b1d55;
}

.category-section-programmering {
    --section-color: var(--color-programmering);
    --section-text: var(--color-antique-white);
    --section-texture: url("../images/design/texture-programmering.png");
    --section-texture-opacity: 0.07;
    --section-texture-center: 432;
    --heading-mask: url("../images/design/heading-programmering.png");
    --heading-ratio: 1920 / 190;
    --heading-color: var(--color-antique-white);
    --heading-color-shift: #b9c7ff;
}

.category-section-kontakt {
    --section-color: var(--color-kontakt);
    --section-text: var(--color-antique-white);
    --section-texture: url("../images/design/texture-kontakt.png");
    --section-texture-opacity: 0.06;
    --section-texture-center: 516;
    --heading-mask: url("../images/design/heading-kontakt.png");
    --heading-ratio: 1858 / 332;
    --heading-color: var(--color-antique-white);
    --heading-color-shift: #f08dba;
}

.category-section-pagetop {
    box-sizing: border-box;
    display: grid;
    align-content: center;
    min-height: 75svh;
    padding-top: var(--top-space);

    @media (pointer: coarse) and (orientation: portrait) {
        align-content: start;
        min-height: auto;
    }
}

.project-section {
    --logo-size: clamp(9rem, 15vw, 16rem);
    --project-text-size: clamp(1rem, 1.2vw, 1.2rem);

    & .category-section-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-items: stretch;
        column-gap: clamp(2rem, 5vw, 6rem);

        @media (width <= 1024px) {
            grid-template-columns: minmax(0, 1fr);
            row-gap: 2.5rem;
        }
    }
}

.project-section-logo {
    justify-self: center;

    @media (width <= 1024px) {
        justify-self: end;
    }
}

.project-section-logo-img {
    display: block;
    width: calc(var(--logo-size) * var(--logo-factor));
    max-width: 100%;
    height: auto;
}

.project-section-content {
    display: grid;
    justify-items: end;
    justify-self: end;
    width: 64.5ch;
    max-width: 100%;
    font-family: var(--font-secondary);
    font-size: var(--project-text-size);
    text-align: right;
}

.project-section-heading {
    font-family: var(--font-primary);
    font-size: min(clamp(2rem, 3vw, 3rem), 8cqi);
    font-weight: 400;
    line-height: 1.15;
}

.project-section-lead {
    margin-top: 0.75rem;
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 1.35vw, 1.35rem);
    font-weight: 300;
    line-height: 1.4;
}

.project-section-subheading {
    margin-top: 1.75rem;
    font-family: var(--font-primary);
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.project-section-text {
    margin-top: 0.35rem;
    font-family: var(--font-secondary);
    font-size: var(--project-text-size);
    line-height: 1.55;
}

.project-section-content .category-section-link {
    margin-top: 1.75rem;
}

.project-section-dark {
    --section-color: var(--color-projekter);
    --section-text: var(--color-antique-white);
    --section-texture: url("../images/design/texture-projekter.png");
    --section-texture-opacity: 0.08;
}

.project-section-light {
    --section-color: var(--color-projekter-light);
    --section-text: var(--color-black);
    --section-texture: url("../images/design/texture-projekter.png");
    --section-texture-opacity: 0.14;
}

.project-section-paper {
    --section-color: var(--color-antique-white);
    --section-text: var(--color-black);
    --section-texture: url("../images/design/texture-projekter.png");
    --section-texture-opacity: 0.06;
    --section-texture-filter: none;
}

.project-preview {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    row-gap: 1rem;
}

.project-preview-stage {
    display: grid;
    width: min(60svh * 894 / 1364, 100cqi);
    aspect-ratio: 894 / 1364;
}

.project-preview-start {
    grid-area: 1 / 1;
    place-self: center;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.8s ease-in-out;

    &:focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 4px;
    }
}

.project-preview-empty .project-preview-controls {
    visibility: hidden;
}

.project-preview-empty .project-preview-start {
    cursor: default;
}

.project-preview-running .project-preview-start {
    opacity: 0;
}

.project-preview-screen {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2.8% / 1.84%;
    corner-shape: squircle;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

.project-preview-screen-active {
    opacity: 1;
}

.project-preview-fade .project-preview-screen {
    mask-image: linear-gradient(to bottom, #000 85%, transparent);
}

.project-preview-controls {
    display: grid;
    justify-items: center;
    row-gap: 0.25rem;
}

.project-preview-counter {
    min-height: 1.4em;
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    visibility: hidden;
}

.project-preview-running .project-preview-counter {
    visibility: visible;
}

.project-preview-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: var(--target-size);
    min-height: var(--target-size);
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;

    &:focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 2px;
    }
}

.project-preview-toggle-image {
    display: block;
    width: 2rem;
    height: auto;
    opacity: 0.85;
    filter: brightness(1.08) drop-shadow(0 0 1px var(--color-black)) drop-shadow(0 0 0.2rem var(--color-black));

    .project-preview-toggle:is(:hover, :focus-visible) & {
        opacity: 1;
    }
}

.project-preview-toggle-text {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
}

@media (prefers-reduced-motion: reduce) {
    .project-preview-start,
    .project-preview-screen {
        transition: none;
    }
}

.project-section-tisvilde         { --logo-factor: 1.14; }
.project-section-frihedskoden     { --logo-factor: 1.656; }
.project-section-verdensmaal      { --logo-factor: 1.105; }
.project-section-perceptualgarden { --logo-factor: 1.656; }
.project-section-dagensord        { --logo-factor: 1; }

.fade-in-ready {
    opacity: 0;
}

.fade-in-ready.fade-in-visible {
    opacity: 1;
    transition: opacity 2s ease-in-out;
}

.uiux-section-dark {
    --section-color: var(--color-uiux-dark);
    --section-text: var(--color-antique-white);
    --section-texture: url("../images/design/texture-uiux.png");
    --section-texture-opacity: 0.07;
}

.uiux-section-statement {
    --section-color: var(--color-uiux-pale);
    --section-text: var(--color-black);
    --section-texture: url("../images/design/texture-uiux.png");
    --section-texture-opacity: 0.05;
    --section-texture-filter: none;
}

.uiux-section-light {
    --section-color: var(--color-uiux-light);
    --section-text: var(--color-black);
    --section-texture: url("../images/design/texture-uiux.png");
    --section-texture-opacity: 0.05;
    --section-texture-filter: none;
}

.uiux-centered {
    width: min(var(--centered-width, 38rem), 100%);
    margin-left: calc((100% - min(var(--centered-width, 38rem), 100%)) / 2 + (var(--text-edge) - var(--page-gutter)) / 2);
    text-align: center;
}

.uiux-holdning {
    --centered-width: 51.5ch;

    display: grid;
    gap: 1.5rem;
    font-family: var(--font-secondary);
    font-size: clamp(1.05rem, 1.4vw, 1.4rem);

    & .category-section-text {
        max-width: none;
    }
}

.uiux-definition {
    --centered-width: 75ch;

    display: grid;
    gap: 1.5rem;

    & .uiux-section-heading {
        margin-top: 0;
    }
    font-family: var(--font-secondary);
    font-size: clamp(1.05rem, 1.4vw, 1.4rem);

    & .category-section-text {
        max-width: none;
    }
}

.uiux-quote {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    text-wrap: balance;
}

.uiux-section-heading,
.programmering-section-heading {
    margin-top: 1.5rem;
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
}

.uiux-principles,
.programmering-principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 46.5ch));
    justify-content: end;
    gap: 2.5rem clamp(2rem, 4vw, 4rem);
    margin-top: 1rem;
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.2vw, 1.2rem);

    @media (width <= 1024px) {
        grid-template-columns: minmax(0, 46.5ch);
    }
}

.uiux-principle-heading,
.programmering-principle-heading {
    font-family: var(--font-primary);
    font-size: clamp(1.15rem, 1.4vw, 1.4rem);
    font-weight: 400;
}

.uiux-principle-text,
.programmering-principle-text {
    margin-top: 0.5rem;
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.55;
}

.uiux-gallery {
    --section-texture: url("../images/design/texture-uiux.png");
    --section-texture-opacity: 0.07;

    z-index: 30;
    padding-inline: calc((var(--page-gutter) + var(--text-edge)) / 2);
    background-color: var(--color-uiux-dark);

    @media (pointer: coarse) and (orientation: portrait) {
        padding: clamp(2rem, 5vh, 3rem) var(--page-gutter);
    }

    @media (pointer: coarse) and (orientation: landscape) and (height < 40rem) {
        box-sizing: border-box;
        display: grid;
        align-content: center;
        min-height: 100svh;
        padding: clamp(0.75rem, 4svh, 1.5rem) var(--page-gutter);
    }
}

.uiux-choices {
    --choice-frame: #4e3556;
    --choice-mat: #14111f;
    --choice-image: url("../images/uiux/watercolor-preview.jpg") center / cover no-repeat;
    --choice-width: 5.75rem;
    --center-shift: calc((var(--text-edge) - var(--page-gutter)) / 2);

    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    translate: var(--center-shift);
    text-align: center;
}

.uiux-choices-section {
    padding-top: clamp(2rem, 5vh, 3rem);
}

.uiux-choices-intro {
    max-width: 75ch;
}

.uiux-choices-groups {
    display: grid;
    gap: 1.25rem;
    width: max-content;
    max-width: 100%;
}

.uiux-choices-row {
    --choice-width: 4rem;

    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.uiux-choice:disabled .uiux-choice-option {
    opacity: 0.4;
    cursor: default;

    &:not(:has(.uiux-choice-input:checked)):hover .uiux-choice-name {
        border-bottom-color: transparent;
    }
}

.uiux-tip {
    width: 75ch;
    max-width: 100%;
    min-height: 8.25lh;
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.55;
    text-wrap: balance;
}

.uiux-tip-heading {
    font-family: var(--font-primary);
    font-size: clamp(1.15rem, 1.4vw, 1.4rem);
    font-weight: 400;
    line-height: 1.2;
}

.uiux-tip-body {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
    transition: opacity 0.4s ease-in-out;

    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
}

.uiux-tip-hidden {
    opacity: 0;
}

.uiux-tip-title {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-primary);
    font-size: clamp(1.05rem, 1.25vw, 1.25rem);
    font-weight: 400;
}

.uiux-choice {
    min-width: 0;
    padding: 0;
    border: 0;
}

.uiux-choice-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
}

@container (width < 45rem) {
    .uiux-choices-row {
        flex-direction: column;
        align-items: center;
    }

    .uiux-choice-options {
        justify-content: center;
    }
}

.uiux-choice-option {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    align-items: center;
    gap: 0.5rem;
    width: var(--choice-width);
    padding: 0.5rem 0 0.4rem;
    cursor: pointer;

    &:hover .uiux-choice-name {
        border-bottom-color: color-mix(in oklab, var(--color-black), transparent 50%);
    }

    &:has(.uiux-choice-input:checked) .uiux-choice-name {
        border-bottom-color: var(--color-black);
    }

    &:has(.uiux-choice-input:focus-visible) {
        outline: 3px solid var(--color-black);
        outline-offset: 3px;
    }
}

.uiux-choice-input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.uiux-choice-name {
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
}

.uiux-choice-hex {
    font-family: var(--font-secondary);
}

.uiux-choice-frame {
    box-sizing: border-box;
    width: 4rem;
    aspect-ratio: 16 / 9;
    background: var(--choice-image);
}

.uiux-choice-frame-simple {
    border: 2px solid var(--choice-frame);
}

.uiux-choice-frame-double {
    border: 5px double var(--choice-frame);
}

.uiux-choice-frame-triple {
    border: 1px solid var(--choice-frame);
    box-shadow: inset 0 0 0 2px var(--choice-mat), inset 0 0 0 3px var(--choice-frame), inset 0 0 0 5px var(--choice-mat), inset 0 0 0 6px var(--choice-frame);
}

.uiux-choice-frame-mat {
    border: 3px groove var(--choice-frame);
    box-shadow: inset 0 0 0 5px #ece4d4;
}

.uiux-choice-frame-profile {
    border: 5px solid;
    border-color: color-mix(in oklab, var(--choice-frame), white 22%) color-mix(in oklab, var(--choice-frame), black 25%) color-mix(in oklab, var(--choice-frame), black 45%) color-mix(in oklab, var(--choice-frame), white 10%);
}

.uiux-choice-frame-profile-light {
    border: 3px solid;
    border-color: color-mix(in oklab, var(--choice-frame), white 22%) color-mix(in oklab, var(--choice-frame), black 25%) color-mix(in oklab, var(--choice-frame), black 45%) color-mix(in oklab, var(--choice-frame), white 10%);
}

.uiux-choice-swatch {
    box-sizing: border-box;
    width: 2rem;
    aspect-ratio: 1;
    padding: 3px;
    border: 1px solid #767676;
    border-radius: 2px;
    background: linear-gradient(var(--swatch), var(--swatch)) content-box, #efefef;
}

.uiux-choice-swatch-standard { --swatch: #4e3556; }
.uiux-choice-swatch-gold     { --swatch: #c9a227; }
.uiux-choice-swatch-silver   { --swatch: #a7a9ac; }
.uiux-choice-swatch-walnut   { --swatch: #6e4524; }
.uiux-choice-swatch-white    { --swatch: #f3f0ea; }

.uiux-choice-marks {
    display: flex;
    gap: 3px;
    padding: 4px;
    border-radius: 2px;
    background-color: var(--choice-mat);
}

.uiux-choice-tile {
    box-sizing: border-box;
    width: 1rem;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--choice-frame);
    background: var(--choice-image);
}

.uiux-choice-marks-frame .uiux-choice-tile-current {
    border-color: var(--color-antique-white);
    box-shadow: 0 0 0 1px var(--color-antique-white);
}

.uiux-choice-marks-lighter .uiux-choice-tile:not(.uiux-choice-tile-current) {
    filter: saturate(0.6) brightness(0.8);
}

.uiux-choice-marks-grayscale .uiux-choice-tile:not(.uiux-choice-tile-current) {
    filter: grayscale(1);
}

.uiux-choice-marks-faded .uiux-choice-tile:not(.uiux-choice-tile-current) {
    filter: saturate(0.3) contrast(0.75) brightness(1.08);
}

.uiux-choices-result {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    max-width: 75ch;
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    text-wrap: balance;
}

.uiux-choices-summary {
    font-family: var(--font-primary);
    font-size: clamp(1.15rem, 1.4vw, 1.4rem);
    font-weight: 400;
}

.uiux-choices-entry {
    line-height: 1.55;
}

.uiux-choices-label {
    margin-right: 0.5ch;
    font-family: var(--font-primary);
    font-size: clamp(1.05rem, 1.25vw, 1.25rem);
    font-weight: 400;
}

.uiux-choices-note {
    --centered-width: 75ch;

    max-width: none;
}

.programmering-section-light {
    --section-color: var(--color-programmering-light);
    --section-text: var(--color-black);
    --section-texture: url("../images/design/texture-programmering.png");
    --section-texture-opacity: 0.05;
    --section-texture-filter: none;
}

.programmering-section-mid {
    --section-color: var(--color-programmering-mid);
    --section-text: var(--color-antique-white);
    --section-texture: url("../images/design/texture-programmering.png");
    --section-texture-opacity: 0.07;
}

.programmering-section-paper {
    --section-color: var(--color-antique-white);
    --section-text: var(--color-black);
    --section-texture: url("../images/design/texture-programmering.png");
    --section-texture-opacity: 0.06;
    --section-texture-filter: none;
}

.programmering-note {
    width: min(75ch, 100%);
    max-width: none;
    margin-left: calc((100% - min(75ch, 100%)) / 2 + (var(--text-edge) - var(--page-gutter)) / 2);
    text-align: center;
    text-wrap: balance;
}

.programmering-principles .programmering-principle:last-child:nth-child(odd) {
    grid-column: -2;
}

.programmering-text-wide {
    max-width: 64.5ch;
}

.programmering-centered {
    --center-shift: calc((var(--text-edge) - var(--page-gutter)) / 2);

    max-width: none;
    justify-items: center;
    translate: var(--center-shift);
    text-align: center;

    & .programmering-principles {
        grid-template-columns: repeat(3, minmax(0, 30ch));
        justify-content: center;
        text-wrap: balance;

        @media (width <= 1024px) {
            grid-template-columns: minmax(0, 46.5ch);
        }
    }
}

.dagensord-section {
    --board: 312px;
    --section-texture: url("../images/design/texture-programmering.png");
    --section-texture-opacity: 0.07;

    box-sizing: border-box;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding-block: clamp(3rem, 8vh, 6rem);
    background-color: var(--color-programmering);
}

.dagensord-screen {
    display: grid;
    justify-items: center;
    width: var(--board);
    font-family: "Google Sans Code", monospace;
    text-align: center;
    color: rgb(253 245 240);
}

.dagensord-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.dagensord-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgb(248 235 217);
}

.dagensord-board {
    display: block;
    width: 100%;
    height: auto;
    margin-top: calc(var(--board) * 0.14);
}

.dagensord-button {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    height: 2.2rem;
    margin-top: calc(var(--board) * 0.062);
    padding: 0.1rem 0.2rem;
    border: none;
    border-radius: calc(var(--board) * 0.023);
    background-color: rgb(163 163 63);
    font-family: "Google Sans Code", monospace;
    font-size: 1rem;
    font-weight: 400;
    color: rgb(248 235 217);
    text-align: center;
    text-decoration: none;
    transition: all 0.5s;
    cursor: pointer;

    &:hover {
        background-color: rgb(43 70 61);
    }

    &:focus-visible {
        outline: 3px solid rgb(253 245 240);
        outline-offset: 4px;
    }
}

.kontakt-section-paper {
    --section-color: var(--color-antique-white);
    --section-text: var(--color-black);
    --section-texture: url("../images/design/texture-kontakt.png");
    --section-texture-opacity: 0.06;
    --section-texture-filter: none;
}

.kontakt-top {
    --centered-width: 30rem;
    --kontakt-pad-top: var(--top-space);
    --kontakt-pad-bottom: clamp(4rem, 14vh, 9rem);
    --kontakt-heading: clamp(3rem, 6.5vw, 7rem);
    --kontakt-section-content: calc(var(--kontakt-heading) + 4.5rem + 12.4 * clamp(1.05rem, 1.4vw, 1.4rem) + var(--target-size));
    --kontakt-free: calc(100svh - var(--footer-height) - var(--kontakt-pad-top) - var(--kontakt-pad-bottom) - var(--kontakt-section-content));
    --kontakt-heading-top: calc(var(--kontakt-pad-top) - 1px + min(var(--kontakt-free), var(--kontakt-free) / 2));
    --kontakt-stripe-middle: calc(50svh + (543 - 540) * max(100vw / 1920, 100svh / 1080));
    --kontakt-gap: clamp(0.5rem, 1.5vh, 1.25rem);

    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto 1fr auto 1fr;
    min-height: 100svh;
    padding-top: var(--kontakt-heading-top);
    padding-bottom: calc(100svh - 2 * var(--kontakt-stripe-middle) + var(--kontakt-heading-top) + var(--kontakt-heading) + var(--kontakt-gap));
    color-scheme: dark;

    @media (pointer: coarse) and (orientation: portrait) {
        padding-top: max(var(--top-space), var(--kontakt-heading-top));
    }

    @media (pointer: coarse) and (orientation: landscape) and (height < 40rem) {
        --centered-width: 40rem;
        padding-block: 1.5rem clamp(2.5rem, 8svh, 5rem);
    }

    & > .category-section-inner {
        margin-bottom: var(--kontakt-gap);
    }

    & .contact {
        grid-row: 3;
    }
}

.category-section-omos {
    --section-color: var(--color-om-os);
    --section-text: var(--color-antique-white);
    --section-texture: none;
    --heading-mask: url("../images/design/heading-om-os.png");
    --heading-ratio: 1458 / 234;
    --heading-color: var(--color-antique-white);
    --heading-color-shift: #d2cee3;
}

main > .category-section.category-section-omos {
    align-content: start;
    padding-top: calc(5.25rem - clamp(2rem, 3.5vw, 3.5rem) / 2);
    padding-bottom: clamp(1.5rem, 5vh, 3rem);
    padding-inline: var(--page-gutter);

    & .category-section-inner {
        justify-items: center;
        margin-inline: auto;
    }

    & .category-section-heading {
        height: min(clamp(2rem, 3.5vw, 3.5rem), calc(100cqi / (var(--heading-ratio))));
    }
}

.omos-content {
    display: grid;
    justify-items: center;
    margin-top: clamp(1rem, 3vh, 4rem);
}

.omos-body {
    display: grid;
    justify-items: center;
    width: min(75ch, 100%);
    gap: 0.75rem;
    text-align: center;
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.55;
}

.omos-heading {
    font-family: var(--font-primary);
    font-size: clamp(1.15rem, 1.4vw, 1.4rem);
    font-weight: 400;
    line-height: 1.3;
}

.omos-section-social {
    --section-color: var(--color-social-fordeling);
    --section-text: var(--color-antique-white);
    --section-texture: none;

    padding-inline: var(--page-gutter);
}

main > .omos-section-social:last-child {
    align-content: end;
    padding-bottom: calc(clamp(1.5rem, 5vh, 3rem) + 4rem);

    @media (pointer: coarse) and (orientation: portrait) {
        align-content: center;
        padding-block: calc(var(--header-bottom, 6rem) + clamp(2.5rem, 8svh, 5rem)) clamp(2.5rem, 8svh, 5rem);
    }
}

.omos-social {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    width: min(75ch, 100%);
    margin-inline: auto;
    text-align: center;
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.55;
}

.omos-logo {
    width: min(27rem, 100%);
    height: auto;
    margin-bottom: 0.25rem;
}

.kontakt-section-info {
    --section-color: var(--color-black-alt);
    --section-text: var(--color-antique-white);
    --section-texture: url("../images/design/texture-kontakt.png");
    --section-texture-opacity: 0.05;
}

.kontakt-centered {
    width: min(var(--centered-width, 38rem), 100%);
    margin-left: calc((100% - min(var(--centered-width, 38rem), 100%)) / 2 + (var(--text-edge) - var(--page-gutter)) / 2);
}

.kontakt-heading {
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
}

.kontakt-info {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    text-align: center;

    & .kontakt-heading {
        margin-bottom: 1rem;
    }
}

.kontakt-info-line {
    font-family: var(--font-secondary);
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    line-height: 1.55;
}

.kontakt-info-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--target-size);
    color: inherit;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
        text-underline-offset: 0.25em;
    }

    &:focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 4px;
    }
}

.kontakt-answers {
    --centered-width: 75ch;

    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.2vw, 1.2rem);

    & .kontakt-heading {
        margin-bottom: 1.5rem;
        text-align: center;
    }
}

.kontakt-answer {
    border-bottom: 1px solid var(--color-input-line);
    scroll-margin-top: calc(var(--header-bottom, 0px) + 1.5rem);

    &:first-of-type {
        border-top: 1px solid var(--color-input-line);
    }
}

.kontakt-answer-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: var(--target-size);
    padding-block: 0.75rem;
    font-family: var(--font-primary);
    font-size: min(clamp(1.15rem, 1.4vw, 1.4rem), 4.6vw);
    line-height: 1.3;
    list-style: none;
    cursor: pointer;

    &::-webkit-details-marker {
        display: none;
    }

    &::after {
        content: "";
        flex: none;
        width: 1rem;
        aspect-ratio: 1;
        background: url("../images/icons/plus.png") center / contain no-repeat;
    }

    .kontakt-answer[open] > &::after {
        background-image: url("../images/icons/minus.png");
    }

    &:hover {
        text-decoration: underline;
        text-underline-offset: 0.25em;
    }

    &:focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 4px;
    }
}

.kontakt-answer-text {
    padding-bottom: 1.25rem;
    line-height: 1.55;
}

.footer {
    container-type: inline-size;
    min-height: var(--footer-height);
    background-color: var(--color-black);
    background-image: url("../images/design/footer-graphics-228.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    overflow: hidden;

    @media (prefers-reduced-motion: no-preference) {
        animation: bgChange 8s ease-in-out alternate infinite;
    }

    @media (width <= 768px) {
        background-image: url("../images/design/footer-graphics-337.png");
    }
}

@keyframes bgChange {
    from { background-color: var(--color-black-alt); }
    to   { background-color: var(--color-slate); }
}

.footer-content-txt {
    text-align: right;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-antique-white);
    letter-spacing: 0.3rem;
    padding-top: 0.5rem;
    padding-right: 0.5rem;
    opacity: 0.6;

    @media (width <= 1680px) { font-size: 0.75rem; }
    @media (width <= 768px)  { font-size: 0.9rem; }
    @media (width <= 576px)  { font-size: 0.8rem; }
}

.footer-legal {
    display: flex;
    justify-content: right;
    align-items: center;
    padding-right: 0.5rem;
}

.footer-legal-link {
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--color-antique-white);
    opacity: 0.6;
}

.dropdown-li {
    position: relative;
    margin-right: 0.2rem;

    &:hover .dropdown {
        visibility: visible;
        opacity: 1;
    }
}

.dropdown {
    position: absolute;
    width: 30vw;
    opacity: 0;
    transition: opacity 0.3s;

    &::before {
        content: "";
        display: block;
        position: absolute;
    }
}

.dropdown-item {
    list-style: none;

    & img {
        width: 0.8rem;
        padding-right: 10px;
    }
}

.dropdown-link {
    font-weight: 300;
    font-size: 1rem;
    text-decoration: none;
    color: var(--color-antique-white);
    opacity: 0.6;

    &:hover {
        color: var(--color-slate);
    }
}

.footer-copyright {
    padding: 0.5rem 0.5rem 0 0;
    font-family: var(--font-secondary);
    font-size: 1.35rem;
    letter-spacing: 0.3rem;
    text-align: right;
    color: var(--color-antique-white);

    @media (width <= 1680px) { font-size: 0.9rem; }

    @container (width < 36rem) {
        font-size: min(0.9rem, (100cqi - 1rem) / 29);
        letter-spacing: 0.1em;
    }
}

.footer-legal-details {
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: 0.5rem;

    @container (width < 36rem) {
        @supports selector(::details-content) {
            & > .footer-legal-summary {
                display: none;
            }

            &::details-content {
                content-visibility: visible;
            }
        }
    }
}

.footer-legal-summary {
    display: flex;
    align-items: center;
    min-height: var(--target-size);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--color-antique-white);
    list-style: none;
    cursor: pointer;

    @container (width < 36rem) {
        justify-content: flex-end;
    }

    &::-webkit-details-marker {
        display: none;
    }

    &:hover {
        text-decoration: underline;
        text-underline-offset: 0.25em;
    }

    &:focus-visible {
        outline: 3px solid var(--color-antique-white);
        outline-offset: 2px;
    }
}

.footer-legal-list {
    position: absolute;
    top: 0;
    right: 100%;
    display: flex;
    gap: 1.5rem;
    margin-right: 1.5rem;
    list-style: none;

    @container (width < 36rem) {
        position: static;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
        margin-right: 0;
    }
}

.footer-legal-file {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--target-size);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 300;
    white-space: nowrap;
    text-decoration: none;
    color: var(--color-antique-white);

    @container (width < 36rem) {
        font-size: min(1.1rem, (100cqi - 8rem) / 16.5);
    }

    & img {
        width: 0.8rem;
        height: auto;
    }

    &:hover {
        text-decoration: underline;
        text-underline-offset: 0.25em;
    }

    &:focus-visible {
        outline: 3px solid var(--color-antique-white);
        outline-offset: 2px;
    }
}

.v-shield {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.contact {
    display: flex;
    justify-content: center;
}

.contact-content {
    position: relative;
    display: grid;
    width: 100%;

    & > * {
        grid-area: 1 / 1;
    }
}

.contact-form {
    @media (pointer: coarse) and (orientation: landscape) and (height < 40rem) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.5rem;

        & > div:nth-child(4) {
            grid-column: 2;
            grid-row: 1 / span 3;
            display: grid;
            grid-template-rows: minmax(0, 1fr) auto;
        }

        & > div:nth-child(4) > textarea {
            height: auto;
        }

        & > div:last-child {
            grid-column: 2;
        }
    }
}

.contact-form-sent {
    visibility: hidden;
}

.contact-form-input {
    --form-icon-size: 1.1rem;
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.4rem 0.5rem;
    margin-top: 0.5rem;
    border: none;
    border-bottom: 1px solid var(--color-form-line);
    background-color: var(--color-form-field);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    letter-spacing: 2px;
    color: var(--color-antique-white);
    resize: none;

    @media (pointer: coarse) {
        font-size: 1rem;
    }

    background-position: right 0.5rem center;
    background-size: var(--form-icon-size);
    background-repeat: no-repeat;
    padding-right: calc(var(--form-icon-size) + 1rem);

    &::placeholder {
        color: var(--color-form-placeholder);
    }

    &:is(textarea) {
        height: calc(4lh + 0.8rem + 2px);
        background-position: right 0.5rem top 0.4rem;
    }

    &:valid {
        border-bottom-width: 2px;
    }

    &.contact-form-input-valid {
        background-image: url("../images/icons/korrekt.png");
    }

    &.contact-form-input-invalid {
        background-image: url("../images/icons/forkert.png");
    }

    &:focus-visible {
        outline: 2px solid var(--color-antique-white);
        outline-offset: 2px;
    }
}

.feedback {
    min-height: 1lh;
    margin-top: 2px;
    font-size: 0.8em;
    line-height: 1.3;
    color: var(--color-feedback-error);

    &.feedback-request-error::before {
        content: "";
        display: inline-block;
        width: 1em;
        height: 1em;
        margin-right: 0.4em;
        vertical-align: -0.15em;
        background: url("../images/icons/forkert.png") center / contain no-repeat;
    }
}

.custom-btn {
    position: relative;
    float: right;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;

    &:disabled {
        opacity: 0.4;
        cursor: default;
    }

    &:focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 4px;
    }

    &::after {
        --plane-width: min(21.25rem, 24vw);

        content: "";
        position: absolute;
        top: calc(-3.5rem - 0.2856 * var(--plane-width));
        left: calc(100% - 0.6 * var(--plane-width) - 2rem);
        width: var(--plane-width);
        aspect-ratio: 500 / 340;
        background: url("../images/img-email_saagraphics_black-500px.png") left bottom / contain no-repeat;
        filter: brightness(0) invert(1);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 3.5s ease-in-out;

        @media (width <= 1280px) {
            background-image: url("../images/img-email_saagraphics_black-300px.png");
        }

        @media (width <= 1024px) {
            display: none;
        }
    }

    &:hover::after {
        visibility: visible;
        opacity: 1;
    }
}

.custom-btn-img {
    width: 2.75rem;
    filter: brightness(0) invert(1);
}

.contact-form-success {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    padding: 1.5rem;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    line-height: 160%;
    text-align: center;
    color: var(--color-antique-white);

    &:focus {
        outline: none;
    }
}

html:has(body:not(.IDX-frontpage, .IDX-projekter, .IDX-uiux, .IDX-programmering, .IDX-kontakt)) {
    @media (width <= 1024px) { font-size: 70%; }
    @media (width <= 768px)  { font-size: 60%; }
    @media (width <= 576px)  { font-size: 50%; }
    @media (width <= 414px)  { font-size: 40%; }
    @media (width <= 350px)  { font-size: 35%; }
}

:is(.IDX-frontpage, .IDX-projekter, .IDX-uiux, .IDX-programmering, .IDX-kontakt) .header {
    position: static;
}

:is(.IDX-frontpage, .IDX-projekter, .IDX-uiux, .IDX-programmering, .IDX-kontakt) .header-logo {
    position: fixed;
}

:is(.IDX-frontpage, .IDX-projekter, .IDX-uiux, .IDX-programmering, .IDX-kontakt) .header:has(.menu-button[aria-expanded="true"]) .header-logo {
    z-index: 301;
}

:is(.IDX-frontpage, .IDX-projekter, .IDX-uiux, .IDX-programmering, .IDX-kontakt) .navbar {
    z-index: 300;
}

:is(.IDX-frontpage, .IDX-projekter, .IDX-uiux, .IDX-programmering, .IDX-kontakt) .menu {
    right: 4px;
    padding-top: 50px;

    @media (width <= 1024px) {
        right: 0;
        padding-top: 52.5px;
    }
    @media (width <= 768px) { padding-top: 47.5px; }
    @media (width <= 576px) { padding-top: 37.5px; }
    @media (width <= 414px) { padding-top: 33.5px; }
}

:is(.IDX-frontpage, .IDX-projekter, .IDX-uiux, .IDX-programmering, .IDX-kontakt) .navbar-navigation-list {
    @media (width >= 1280px) {
        display: flex;
        box-sizing: border-box;
        height: var(--navbar-height);
        padding-block: 0;
    }
    @media (width < 1280px) {
        height: auto;
    }
}