html {
    color-scheme: light;
    scrollbar-gutter: stable;
}

body {
    background-color: #004477;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    color: #222;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a:link {
    color: #004477;
    text-decoration: underline;
}

a:visited {
    color: #505abc;
}

a:hover {
    color: #0066aa;
    text-decoration: none;
}

a:active {
    color: #12eb87;
}

p {
    line-height: 1.65;
}

.textbox, ul {
    line-height: 2em;
}

header,
footer,
nav,
section {
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    color: #000;
}

    h1 span.trailingheader {
        font-size: .7em;
    }

h1 {
    font-size: 2em;
    padding-bottom: 0;
    margin-bottom: 0;
    font-weight: normal;
}

h2 {
    padding: 0;
    font-size: 1.2em;
    font-weight: bold;
}

    h2.subheader {
        margin-top: 30px;
    }

#main h2 {
    clear: both;
    color: #004477;
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dde4ea;
}

.page {
    width: 80%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
}

header, #header {
    position: relative;
    margin-bottom: 0px;
    color: #000;
    padding: 0;
}

    header h1, #header h1 {
        padding: 5px 0;
        margin: 0;
        margin-bottom: 3px;
        color: #fff;
        border: none;
        line-height: 1em;
        text-shadow: 1px 1px 2px #111;
    }

#main {
    padding: 30px 30px 15px 30px;
    background-color: #fff;
    border-radius: 0 10px 0 0;
    -webkit-border-radius: 0 10px 0 0;
    -moz-border-radius: 0 10px 0 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

footer,
#footer {
    background-color: #fff;
    color: #888;
    padding: 20px 32px;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 30px 0;
    border-radius: 0 0 0 10px;
    -webkit-border-radius: 0 0 0 10px;
    -moz-border-radius: 0 0 0 10px;
    border-top: 2px solid #004477;
    font-style: italic;
    font-size: 0.925rem;
    position: relative;
}

footer::before,
#footer::before {
    content: '\201C';
    display: block;
    font-size: 3rem;
    line-height: 1;
    color: #004477;
    opacity: 0.25;
    margin-bottom: -8px;
    font-style: normal;
}

nav {
    height: 40px;
    clear: left;
    position: relative;
}

#main ul {
    clear: both;
}

    #main ul li {
        margin-left: 5px;
        padding: 0;
    }

    #main ul.capability-grid li {
        margin-left: 20px;
    }

ul#menu {
    padding: 0 0 2px;
    margin: 0;
    margin-bottom: 3px;
    float: left;
}

    ul#menu li {
        display: inline;
        list-style: none;
    }

        ul#menu li a {
            position: relative;
            padding: 4px 12px;
            text-decoration: none;
            line-height: 2.8em;
            color: rgba(255, 255, 255, 0.75);
            margin-right: 4px;
            font-size: 1em;
            transition: color 0.2s;
        }

        ul#menu li a::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 12px;
            right: 12px;
            height: 2px;
            background: #fff;
            transform: scaleX(0);
            transition: transform 0.25s ease;
        }

        ul#menu li a:hover {
            color: #fff;
        }

        ul#menu li a:hover::after {
            transform: scaleX(1);
        }

        ul#menu li a.active {
            color: #fff;
            font-weight: 700;
        }

        ul#menu li a.active::after {
            transform: scaleX(1);
        }

ul#externalLinks {
    padding: 0 0 2px;
    margin: 0;
    margin-bottom: 3px;
    float: right;
}

    ul#externalLinks li {
        display: inline;
        list-style: none;
    }

        ul#externalLinks li a {
            text-decoration: none;
            line-height: 2.8em;
            color: rgba(255, 255, 255, 0.7);
            margin-right: 10px;
            font-size: 0.9em;
            transition: color 0.2s;
        }

        ul#externalLinks li a:hover {
            color: #fff;
        }

div.imagetextbox p, div.fullbox p {
    line-height: 2em;
    margin-right: 30px;
}

div.fullbox {
    display: block;
}

img {
    float: right;
    margin: 0 20px 10px 30px;
}

img[title="Logo"] {
    float: none;
    margin: 0;
}

img[title="Christian Holm Diget"] {
    float: left;
    margin: 0 30px 10px 0;
    border: solid 1px lightgrey;
    border-radius: 4px;
}

img[title="Screenshot"] {
    border: solid 1px lightgrey;
    border-radius: 4px;
}

@media (min-width: 500px) {
    iframe {
        width: 400px;
        height: 300px;
    }
}

/* Bottom nav (mobile) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #003d6b;
    z-index: 1001;
    flex-direction: row;
    align-items: stretch;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.bottom-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-top: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
    color: #fff !important;
    border-top-color: #fff;
}

.bottom-nav-more-btn {
    background: none;
    border: none;
    border-top: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-more-btn.open {
    color: #fff !important;
    border-top-color: #fff;
}

/* More panel */
.bottom-more-panel {
    display: none;
    position: fixed;
    bottom: 52px;
    left: 0;
    right: 0;
    background: #003d6b;
    z-index: 1000;
    flex-direction: column;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-more-panel.open {
    display: flex;
}

.bottom-more-link {
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.15s;
}

.bottom-more-link:last-child {
    border-bottom: none;
}

.bottom-more-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

@media (min-width: 651px) {
    .bottom-more-panel {
        display: none !important;
    }
}


@media (max-width: 850px) {
    .page {
        max-width: none;
        min-width: 0;
        width: 90%;
    }

    #externalLinks {
        display: none;
    }
}

@media (max-width: 650px) {
    nav:not(.bottom-nav) {
        height: 0;
    }

    ul#menu {
        display: none !important;
    }

    #externalLinks {
        display: none !important;
    }

    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 52px;
    }
}

@media (max-width: 500px) {

    img:not([title="Christian Holm Diget"]):not(.project-img):not(.cert-badge):not(.photo-thumb):not(.photo-lightbox-img) {
        display: none !important;
    }

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

    .cta-email {
        display: block;
        word-break: break-all;
        box-sizing: border-box;
    }

    ul#menu li a {
        padding: 3px 5px;
        text-decoration: none;
        line-height: 2.8em;
        color: white;
        margin-right: 5px;
    }

    iframe:not(.video-embed iframe) {
        width: 300px;
        height: 225px;
    }
}

@media (max-width: 430px) {
    img[title="Christian Holm Diget"] {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 16px 0;
    }
}

@media (max-width: 380px) {
    #main {
        padding: 16px 16px 12px 16px;
    }
}

@media (max-width: 320px) {
    .cv-dl-d {
        flex-direction: column;
    }

    .cv-card-d {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 305px) {
    .cv-card-d-lang,
    .cv-card-d-action {
        display: none;
    }
}

@media (max-width: 675px) {

    img[title="MakeWhatsNext Venice 2016"] {
        width: 300px;
    }
}

@media (max-width: 545px) {

    img[title="MakeWhatsNext Venice 2016"] {
        width: 150px;
    }
}

ul {
    padding: 0 0 0 15px;
}

strong, em { display: block; }
strong { clear: both; }

/* Capability grid */
.capability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
    margin: 16px 0 24px 0;
    clear: both;
    list-style: none;
    padding: 0;
}

.capability-grid li {
    line-height: 1.5;
    font-size: 0.95rem;
    margin-left: 0;
    padding-left: 1.4em;
}

.capability-grid li strong {
    display: block !important;
    clear: none !important;
    color: #004477;
    text-indent: -1.4em;
    margin-bottom: 1px;
}

.capability-grid li strong::before {
    content: '\2713\00A0';
    color: #004477;
    font-weight: 700;
}

@media (max-width: 600px) {
    .capability-grid {
        grid-template-columns: 1fr;
    }
}

/* Secondary section headings */
#main h2.secondary-heading {
    color: #bbb;
    border-bottom-color: #f0f0f0;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 28px;
}

/* CTA / Contact box */
.cta-box {
    clear: both;
    background: #004477;
    color: #fff;
    padding: 28px 32px;
    border-radius: 8px;
    margin-top: 36px;
    text-align: center;
}

.cta-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: #fff;
}

.cta-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.cta-email {
    display: inline-block;
    background: #fff;
    color: #004477 !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none !important;
    margin-bottom: 14px;
    transition: background 0.2s;
}

.cta-email:hover {
    background: #e8f0f8 !important;
}

.cta-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    line-height: normal;
}

.cta-links a:link,
.cta-links a:visited {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.cta-links a:hover {
    color: #fff;
}

/* AI callout */
.ai-callout {
    clear: both;
    background: #eef5ff;
    border-left: 3px solid #004477;
    padding: 13px 18px;
    border-radius: 0 6px 6px 0;
    margin: 20px 0;
}

.ai-callout p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #222;
}

/* Client logos */
.client-logos {
    clear: both;
    margin: 24px 0;
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.client-logos-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.client-logo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: normal;
}

.client-logo-list span {
    display: inline-block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #333;
}


/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 24px;
    margin: 16px 0 24px;
    clear: both;
    line-height: normal;
}

.video-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-embed iframe {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    float: none;
    margin: 0;
    border: none;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    padding: 14px 16px 2px;
    margin: 0;
    line-height: 1.4;
}

.video-meta {
    font-size: 0.78rem;
    color: #999;
    padding: 4px 16px 14px;
    margin: 0;
}

/* Certification badge strip */
.cert-badges {
    display: flex;
    gap: 16px;
    margin: 12px 0 24px 0;
}

.cert-badge-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.cert-badge-wrap:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.cert-badge {
    max-height: 90px;
    width: auto;
    max-width: 100%;
    float: none !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* CV download cards */
.cv-dl-d {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cv-card-d {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #dde4ea;
    border-bottom: 3px solid #004477;
    padding: 14px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    color: #222 !important;
    transition: box-shadow 0.2s, transform 0.2s;
    flex: 1;
    min-width: min(220px, 100%);
    line-height: normal;
}

.cv-card-d:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    color: #222 !important;
}

.cv-card-d-lang {
    font-size: 0.8rem;
    font-weight: 700;
    color: #004477;
    background: #eef5ff;
    border-radius: 4px;
    padding: 6px 9px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.cv-card-d-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.cv-card-d-title {
    font-weight: 700;
    color: #004477;
    font-size: 0.9rem;
}

.cv-card-d-sub {
    font-size: 0.78rem;
    color: #888;
}

.cv-card-d-action {
    font-size: 0.8rem;
    color: #004477;
    font-weight: 600;
    flex-shrink: 0;
    opacity: 0.75;
}

/* CV timeline */
.cv-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #004477;
    font-weight: 700;
    margin: 32px 0 14px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #eef0f2;
    border-bottom-color: #eef0f2 !important;
    color: #004477 !important;
}

.cv-timeline {
    border-left: 2px solid #dde4ea;
    margin-left: 8px;
}

.cv-entry {
    position: relative;
    padding: 0 0 18px 22px;
}

.cv-timeline-compact .cv-entry {
    padding-bottom: 10px;
}

.cv-entry::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #004477;
}

.cv-entry-title {
    font-weight: 700;
    color: #222;
    margin: 0 0 3px 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.cv-entry-desc {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    line-height: 1.55;
}

/* Project cards */
.project-card {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid #eee;
    clear: both;
    line-height: normal;
}

.project-card:last-child {
    border-bottom: none;
}

.project-no-img::before {
    content: '';
    width: 160px;
    min-width: 160px;
    height: 108px;
    background: #f0f2f5;
    border-radius: 6px;
    display: block;
    flex-shrink: 0;
}

.project-img {
    width: 160px;
    min-width: 160px;
    height: 108px;
    object-fit: cover;
    border-radius: 6px;
    float: none !important;
    margin: 0 !important;
    border: none !important;
    display: block;
}

.project-body {
    flex: 1;
    min-width: 0;
}

.project-title {
    font-size: 1rem;
    font-weight: 700;
    color: #004477;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: block !important;
    clear: none !important;
}

.project-desc {
    font-size: 0.88rem;
    color: #444;
    margin: 0 0 10px 0;
    line-height: 1.65;
}

.project-tech {
    font-size: 0.78rem;
    color: #888;
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.project-role {
    font-size: 0.78rem;
    font-weight: 700;
    color: #004477;
    margin: 0;
}

@media (max-width: 600px) {
    .project-card {
        flex-direction: column;
    }

    .project-img {
        width: 100%;
        height: 160px;
        min-width: 0;
    }
}

/* Card hover lift */
.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Photo gallery */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 16px;
    margin: 16px 0 24px;
    clear: both;
}

.photo-card {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 0;
}

.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.photo-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    float: none !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Lightbox */
.photo-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.photo-lightbox.open {
    display: flex;
}

.photo-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    float: none !important;
    margin: 0 !important;
    border: none !important;
}

.photo-lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
}

.photo-lightbox-close:hover {
    opacity: 1;
}