/* ============ Base ============ */
@font-face {
    font-family: 'Rhapson Script';
    src: url('../fonts/Rhapson%20Script%20Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', system-ui, sans-serif;
    color: #1a1a1a;
    background: #fff;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ============ Layout container ============ */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Only the hero container needs the big top margin */
.hero .container {
    margin-top: 140px;
}

/* ============ Hero ============ */
.hero {
    position: relative;
    width: 100%;
    padding: 30px 0 40px;
    overflow: hidden;
}

/* ---------- Top nav (sits above the black box, left of face) ---------- */
.top-nav {
    position: relative;
    z-index: 30;
    margin-bottom: 20px;
}
.top-nav ul {
    display: flex;
    gap: 50px;
}
.top-nav li {
    opacity: 0;
    transform: translateY(-12px);
    animation: navLinkIn .7s cubic-bezier(.16,1,.3,1) forwards;
}
.top-nav li:nth-child(1) { animation-delay: .1s; }
.top-nav li:nth-child(2) { animation-delay: .2s; }
.top-nav li:nth-child(3) { animation-delay: .3s; }

@keyframes navLinkIn {
    to { opacity: 1; transform: translateY(0); }
}
.top-nav a {
    position: relative;
    font-family: "Montserrat", Sans-serif;
    font-size: 19px;
    font-weight: 500;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 1.2em;
    letter-spacing: 0px;
    padding: 4px 2px;
    color: #1a1a1a;
}
.top-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #f08973;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s ease, color .3s ease;
}
.top-nav a:hover { color: #f08973; }
.top-nav a:hover::after { transform: scaleX(1); }

/* ---------- Stage ---------- */
.hero-stage {
    position: relative;
    width: 100%;
    height: 520px;
}

/* Black bar with the giant WØHLK title */
.hero-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 300px;
    padding: 0 4%;
    background: #2c2c2c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    animation: heroBarReveal 1.1s cubic-bezier(.77,0,.18,1) both;
    transform-origin: left center;
}

@keyframes heroBarReveal {
    0%   { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

.hero-title {
    margin: 0;
    color: #FFFFFF;
    font-family: "Montserrat", Sans-serif;
    font-size: 250px;
    font-weight: 800;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 1em;
    letter-spacing: 0px;
    white-space: nowrap;
    transform-origin: center center;
    animation: heroTitleIn 1.4s cubic-bezier(.16,1,.3,1) both,
               titleZoom 14s ease-in-out 1.4s infinite;
    will-change: transform;
}

@keyframes titleZoom {
    0%, 100% { transform: scale(0.92); }
    50%      { transform: scale(1); }
}

@keyframes heroTitleIn {
    0%   { opacity: 0; letter-spacing: 40px; transform: scale(.85); filter: blur(6px); }
    100% { opacity: 1; letter-spacing: 0;    transform: scale(.92); filter: blur(0); }
}

/* Portrait centered on the bar */
.hero-portrait {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 200px;
    height: auto;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    animation: heroPortraitRise 1.2s cubic-bezier(.16,1,.3,1) .55s both;
}

@keyframes heroPortraitRise {
    0%   { opacity: 0; transform: translateX(-50%) translateY(60px) scale(.96); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1); }
}

/* ---------- Floating icons ---------- */
.float-icon,
.services-icon,
.tagline {
    position: absolute;
    z-index: 3;
    will-change: transform;
}

/* LinkedIn – left middle */
.icon-linkedin {
    width: 272px;
    max-width: 100%;
    left: 26px;
    top: 224px;
    opacity: 0;
    animation: rock 8s ease-in-out infinite,
               floatIconIn .9s cubic-bezier(.16,1,.3,1) .9s forwards;
}

/* Meta (insta + facebook) – top right */
.icon-meta {
    width: 229px;
    max-width: 100%;
    right: 20px;
    top: -30px;
    opacity: 0;
    animation: rock 9s ease-in-out -4.5s infinite,
               floatIconIn .9s cubic-bezier(.16,1,.3,1) 1.1s forwards;
}

@keyframes floatIconIn {
    0%   { opacity: 0; scale: .55; }
    60%  { opacity: 1; scale: 1.06; }
    100% { opacity: 1; scale: 1; }
}

/* Tagline – under the black box (no animation, no parallax) */
.tagline {
    width: 419px;
    max-width: 100%;
    right: 82px;
    top: 314px;
    font-family: "Rhapson Script", "Caveat", cursive;
    font-weight: 400;
    font-size: 57px;
    line-height: 1;
    color: #1a1a1a;
    text-align: right;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: taglineIn 1.2s cubic-bezier(.16,1,.3,1) 1.3s forwards;
}

@keyframes taglineIn {
    0%   { opacity: 0; transform: translateY(20px) rotate(-3deg); }
    100% { opacity: 1; transform: translateY(0)    rotate(0); }
}

/* Hjemmesider / grafisk design – bottom right (NO floating) */
.services-icon {
    width: 290px;
    max-width: 100%;
    right: 98px;
    bottom: 52px;
    opacity: 0;
    animation: floatIconIn .9s cubic-bezier(.16,1,.3,1) 1.5s forwards;
}

@keyframes rock {
    0%, 100% { transform: rotate(-9deg) translateY(0); }
    50%      { transform: rotate(9deg) translateY(-12px); }
}

/* Mouse parallax via the `translate` property so it composes
   cleanly with the rocking `transform` animation. Tagline excluded. */
.float-icon,
.services-icon {
    translate: var(--mx, 0) var(--my, 0);
}

/* ============ Responsive ============ */
@media (max-width: 1140px) {
    .hero-title { font-size: 20vw; }
    .hero-bar   { height: 26vw; }
    .hero-stage { height: auto; min-height: 46vw; padding-bottom: 180px; }
    .tagline    { top: calc(26vw + 14px); }
    .services-icon { bottom: 20px; }
}

@media (max-width: 1000px) {
    .hero .container { margin-top: 80px; }

    .top-nav ul {
        justify-content: center;
        gap: 30px;
    }

    .hero-portrait,
    .icon-linkedin,
    .icon-meta,
    .services-icon { display: none; }

    .hero-stage {
        height: auto;
        min-height: 0;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-bar {
        position: relative;
        height: clamp(140px, 28vw, 280px);
        width: 100%;
    }

    .tagline {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        margin-top: 28px;
        text-align: center;
        font-size: clamp(46px, 9.5vw, 64px);
        white-space: normal;
    }
}

@media (max-width: 700px) {
    .top-nav ul { gap: 18px; }
    .top-nav a { font-size: 16px; }
}

/* ============ About / Skills section ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    row-gap: 0;
    align-items: start;
    padding-top: 140px;
}
.about-grid > .about-text    { grid-column: 1; grid-row: 1; }
.about-grid > .about-buttons { grid-column: 1; grid-row: 2; }
.about-grid > .skills-grid   { grid-column: 2; grid-row: 1 / span 2; }

/* ============ Section divider (lottie arrow) ============ */
.section-divider {
    display: flex;
    justify-content: center;
    padding: 170px 0 170px;
}
.divider-lottie {
    width: 55px;
    height: auto;
}

/* ============ Experience section ============ */
.experience {
    padding: 0px 0 80px;
}

.advanced-heading {
    position: relative;
    text-align: center;
    padding: 30px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Big greyed-out background word */
.advanced-heading .advanced-heading-content {
    color: #eee;
    font-family: "Montserrat", Sans-serif;
    font-size: 60px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    transition: all .3s ease-out;
}

/* Small label on top */
.advanced-heading .sub-heading {
    display: inline-block;
    line-height: 1;
    z-index: 1;
    position: relative;
    font-family: "Montserrat", Sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #27282C;
}

/* Bold main title */
.advanced-heading .heading-title {
    font-family: "Montserrat", Sans-serif;
    font-size: 45px;
    font-weight: 800;
    display: inline-flex;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    color: #27282c;
    margin: 0px 0 0;
    padding: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
}

@media (max-width: 900px) {
    .advanced-heading .advanced-heading-content { font-size: clamp(28px, 6vw, 60px); }
    .advanced-heading .heading-title { font-size: clamp(26px, 6vw, 45px); }
    .advanced-heading .sub-heading   { font-size: clamp(16px, 3.8vw, 28px); }
}

@media (max-width: 767px) {
    .advanced-heading .advanced-heading-content { display: none; }
    .section-divider { padding: 100px 0; }
    .experience { padding: 0 0 30px; }
    .cv-section { padding: 10px 0 25px; }
    .skills-circle-section { padding: 0 0 50px; }
    .advanced-heading { padding: 20px 0 10px; }

    /* Center about-text on mobile */
    .about-text { text-align: center; }
    .about-buttons { justify-content: center; }

    /* ----- Mobile typography scale (consistent across sections) ----- */
    /* Card / item titles */
    .timeline-position,
    .skills-accordion-label,
    .showcase-title { font-size: 17px; line-height: 1.3; }

    /* Body text */
    .timeline-content,
    .key-area p,
    .description,
    .highlight-title,
    .highlight span:not(.highlight-title),
    .skills-accordion-body p,
    .footer-text,
    .footer-contact li { font-size: 15px; line-height: 1.55; }

    /* Small / supporting text */
    .timeline-date,
    .timeline-company,
    .project-body p,
    .footer-copy { font-size: 13px; }

    /* Tiny labels (project tags, dashboard pills, key-titles) — keep as-is */
    .timeline-btn { font-size: 12px; }

    /* Footer logo a touch smaller for proportion */
    .footer-logo { font-size: 30px; }

    /* Skill card label tightening for the stacked pill layout */
    .skill-card span { font-size: 17px; }
}

.about-text h2 {
    color: #27282C;
    font-family: "Montserrat", Sans-serif;
    font-size: clamp(24px, 5.5vw, 35px);
    font-weight: 800;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 1.2em;
    letter-spacing: 0px;
    margin: 0 0 24px;
    overflow-wrap: break-word;
}

.about-text p {
    color: #54595F;
    font-family: "Montserrat", Sans-serif;
    font-size: clamp(15px, 3.6vw, 21px);
    font-weight: 400;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 1.5em;
    letter-spacing: 0px;
    margin: 0 0 18px;
    overflow-wrap: break-word;
}

.about-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ----- Fancy button ----- */
.adv-btn {
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
}
.adv-btn-wrap {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    color: #4a4d5c;
    background: none;
    border: 5px solid #4a4d5c;
    padding: 10px 15px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    outline: none;
    transition: all 0.3s ease;
}
.adv-btn-wrap::before,
.adv-btn-wrap::after {
    content: "";
    position: absolute;
    width: 10%;
    height: 5px;
    background: #fff;
    transform: skewX(-45deg);
    transition: all 0.45s cubic-bezier(.86, 0, .07, 1);
}
.adv-btn-wrap::before {
    right: 20%;
    top: -5px;
}
.adv-btn-wrap::after {
    left: 20%;
    bottom: -5px;
}
.adv-btn-wrap:hover {
    border-color: #f08973;
    color: #f08973;
}
.adv-btn-wrap:hover::before { right: 80%; }
.adv-btn-wrap:hover::after  { left: 80%; }

/* ----- Skill cards grid ----- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.skill-card {
    background: #2c2c2c;
    color: #fff;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.skill-card img,
.skill-card i {
    height: 85px;
    margin-bottom: 22px;
    filter: brightness(100%) contrast(100%) saturate(100%) blur(0px) hue-rotate(0deg);
    transition: transform 0.3s ease;
    /* Make black SVGs render white on the dark cards */
    filter: brightness(0) invert(1);
}

.skill-card i {
    /* Reset image-only filters and size as a font icon */
    filter: none;
    width: 85px;
    height: 85px;
    line-height: 85px;
    font-size: 72px;
    color: #ffffff;
    text-align: center;
    display: inline-block;
}

.skill-card span {
    color: #FFFFFF;
    font-family: "Montserrat", Sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 1.2em;
    letter-spacing: 0px;
}

.skill-card:hover img,
.skill-card:hover i {
    transform: translateY(-8px);
}

.skill-card--accent {
    background: #2c2c2c;
}

/* Light variant: white background, dark icons + text */
.skill-card--light {
    background: #ffffff;
}
.skill-card--light span {
    color: #27282C;
}
.skill-card--light img {
    /* Override the white-icon filter so icons stay dark on white */
    filter: none;
}
.skill-card--light i {
    color: #27282C;
}

@media (max-width: 1100px) {
    .about-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 40px;
        padding-top: 80px;
    }
    /* Stack: about text → skill cards → buttons, centered */
    .about-grid > .about-text    { grid-column: 1; grid-row: 1; text-align: center; }
    .about-grid > .skills-grid   { grid-column: 1; grid-row: 2; }
    .about-grid > .about-buttons { grid-column: 1; grid-row: 3; justify-content: center; }

    /* Cap card size so they don't blow up between 1100 and 600 */
    .skills-grid {
        max-width: 640px;
        margin: 0 auto;
        width: 100%;
    }
    .skill-card { padding: 20px; }
    .skill-card img,
    .skill-card i {
        height: 60px;
        margin-bottom: 16px;
    }
    .skill-card i {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 52px;
    }
    .skill-card span { font-size: 22px; }
}

@media (max-width: 600px) {
    .about-grid { padding-top: 40px; row-gap: 32px; }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .skill-card {
        aspect-ratio: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 18px;
        padding: 18px 22px;
        text-align: left;
    }
    .skill-card img,
    .skill-card i {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .skill-card i {
        font-size: 36px;
        line-height: 48px;
    }
    .skill-card span {
        font-size: 18px;
        text-align: left;
    }
    .skill-card span br { display: none; }
}

/* ============ CV / Timeline ============ */
.cv-section {
    padding: 20px 0 50px;
    font-family: 'Montserrat', sans-serif;
}

/* --- Top tabs (uses .adv-btn styling already defined) --- */
.timeline-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.timeline-tab { cursor: pointer; margin-top: 0; }
.timeline-tab.is-active .adv-btn-wrap {
    border-color: #f08973;
    color: #f08973;
}

/* --- Timeline structure --- */
.timeline {
    position: relative;
}
.timeline-section {
    display: none;
    position: relative;
    padding: 20px 0;
}
.timeline-section.is-active { display: block; }

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(172,172,172,0) 0%,
        #acacac 8%,
        #acacac 92%,
        rgba(172,172,172,0) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-side {
    width: 50%;
}
.timeline-side--left {
    text-align: right;
    padding-right: 50px;
}
.timeline-side--right {
    text-align: left;
    padding-left: 50px;
}

.timeline-dot {
    background-color: #fff;
    border: 3px solid #27282c;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    z-index: 10;
    transition: border-color .25s ease, transform .25s ease;
}
/* Arrows pointing from the dot toward each side card */
.timeline-dot::before,
.timeline-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transform: translateY(-50%);
    transition: border-color .25s ease;
}
.timeline-dot::before {
    right: calc(100% + 6px);
    border-right: 7px solid #acacac;
}
.timeline-dot::after {
    left: calc(100% + 6px);
    border-left: 7px solid #acacac;
}
.timeline-item--right-only .timeline-dot::before { display: none; }
.timeline-item--left-only  .timeline-dot::after  { display: none; }

/* Highlight the main dot only when the main card (not a substep) is hovered */
.timeline-item:has(> .timeline-side--left  > .timeline-card:hover) .timeline-dot,
.timeline-item:has(> .timeline-side--right > .timeline-card:hover) .timeline-dot {
    border-color: #f08973;
    transform: translateX(-50%) scale(1.15);
}
/* Left card hover -> highlight only the left-pointing arrow */
.timeline-item:has(> .timeline-side--left > .timeline-card:hover) .timeline-dot::before {
    border-right-color: #f08973;
}
/* Right card hover -> highlight only the right-pointing arrow */
.timeline-item:has(> .timeline-side--right > .timeline-card:hover) .timeline-dot::after {
    border-left-color: #f08973;
}

/* Sub-cards stacked under the right side card (e.g. older roles) */
.timeline-substep {
    position: relative;
    margin-top: 32px;
}
.timeline-mini-dot {
    position: absolute;
    left: -58px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #27282c;
    border-radius: 50%;
    z-index: 10;
    transition: border-color .25s ease, transform .25s ease;
}
.timeline-mini-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 6px);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #acacac;
    transform: translateY(-50%);
    transition: border-color .25s ease;
}
.timeline-substep:hover .timeline-mini-dot {
    border-color: #f08973;
    transform: scale(1.15);
}
.timeline-substep:hover .timeline-mini-dot::after { border-left-color: #f08973; }

/* --- Card content --- */
.timeline-card { position: relative; }

.timeline-date,
.timeline-company,
.timeline-position {
    display: block;
    font-family: "Montserrat", Sans-serif;
}
.timeline-date {
    font-weight: 700;
    color: #27282c;
    font-size: 17px;
    letter-spacing: .2px;
}
.timeline-company {
    color: #8a8d96;
    font-weight: 600;
    margin-top: 4px;
    font-size: 14.5px;
}
.timeline-position {
    font-weight: 800;
    color: #27282c;
    margin-top: 6px;
    font-size: 19px;
    line-height: 1.3;
}

.timeline-divider {
    border: 0;
    border-top: 1px solid #ececec;
    margin: 18px 0 0;
}

/* --- Sub-buttons (Om rollen / Områder / Projekter / Resultater) --- */
.timeline-buttons {
    display: flex;
    gap: 18px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.timeline-buttons--right { justify-content: flex-start; }
.timeline-buttons--left  { justify-content: flex-end; }
.timeline-buttons--left .timeline-btn { order: 1; }

.timeline-btn {
    font-weight: 700;
    cursor: pointer;
    position: relative;
    margin-bottom: 18px;
    font-size: 13px;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: #8a8d96;
    padding: 4px 0;
    white-space: nowrap;
    transition: color .25s ease;
}
.timeline-btn::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #f08973;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .35s cubic-bezier(.65,0,.35,1);
}
.timeline-buttons--left .timeline-btn::after  { transform-origin: right; }
.timeline-buttons--right .timeline-btn::after { transform-origin: left; }
.timeline-btn:hover { color: #27282c; }
.timeline-btn:hover::after,
.timeline-btn.is-active::after { transform: scaleX(1); }
.timeline-btn.is-active { color: #27282c; }

/* --- Content panel --- */
.timeline-content {
    display: none;
    margin-top: 16px;
    font-size: 15px;
    color: #54595f;
    line-height: 1.6;
    text-align: left;
}
.timeline-side--left .timeline-content { text-align: right; }

/* .timeline-content.is-active animation defined later (improved version) */

/* --- Key areas / highlights --- */
.key-area,
.key-section { margin-bottom: 14px; }
.key-area:last-child,
.key-section:last-child { margin-bottom: 0; }

.key-title,
.section-title {
    font-size: 10.5px;
    font-weight: 800;
    color: #f08973;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.key-title::before,
.section-title::before {
    content: "";
    width: 18px;
    height: 2px;
    background: #f08973;
    display: inline-block;
}
.timeline-side--left .key-title,
.timeline-side--left .section-title { flex-direction: row-reverse; }

.key-area p {
    margin: 0;
    color: #54595f;
    font-size: 15px;
    line-height: 1.6;
    text-wrap: balance;
}


.highlight {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    gap: 1px;
}
.highlight + .highlight { border-top: 1px dashed #ececec; }

.highlight-title {
    font-size: 15px;
    font-weight: 700;
    color: #27282c;
    line-height: 1.5;
    padding: 0 2px;
    align-self: flex-start;
    text-decoration-line: underline;
    text-decoration-color: rgba(240, 137, 115, 0.22);
    text-decoration-thickness: 0.4em;
    text-underline-offset: -0.18em;
    text-decoration-skip-ink: none;
    transition: text-decoration-thickness .35s ease, text-underline-offset .35s ease;
}
.timeline-side--left .highlight-title { align-self: flex-end; }
.highlight:hover .highlight-title {
    text-decoration-thickness: 0.85em;
    text-underline-offset: -0.6em;
}

.highlight span:not(.highlight-title) {
    color: #54595f;
    font-size: 15px;
    line-height: 1.6;
}

.description {
    font-size: 15px;
    color: #54595f;
    line-height: 1.6;
}

/* Chip-style work areas (rendered by JS) */
.chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}
.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.timeline-side--left .chips { align-items: flex-end; }
.timeline-side--left .chips-row { justify-content: flex-end; }
.timeline-side--right .chips { align-items: flex-start; }
.timeline-side--right .chips-row { justify-content: flex-start; }
.chip {
    display: inline-block;
    padding: 5px 11px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #27282c;
    line-height: 1.2;
    transition: all .2s ease;
    cursor: default;
}
.chip:hover {
    border-color: #f08973;
    color: #f08973;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(240,137,115,0.15);
}

/* --- Project list (Projekter tab) --- */
.project-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    counter-reset: project;
}
.project-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    padding: 6px 10px;
    position: relative;
    overflow: hidden;
    transition: background .2s ease, transform .2s ease;
}
.project-item:hover {
    background: rgba(240,137,115,0.04);
    transform: translateX(2px);
    box-shadow: none;
}

.project-num {
    font-family: "Montserrat", Sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #cfd0d4;
    line-height: 1;
    letter-spacing: -.3px;
    align-self: center;
    min-width: 22px;
    text-align: center;
    transition: color .25s ease;
}
.project-item:hover .project-num { color: #f08973; }

.project-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-align: left;
    min-width: 0;
}
.project-tag {
    flex: 0 0 90px;
    width: 90px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #f08973;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 3px 6px;
    background: rgba(240,137,115,0.08);
    border-radius: 3px;
    line-height: 1.2;
    align-self: center;
}
.project-body p {
    margin: 0;
    color: #54595f;
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
    min-width: 0;
}

/* Mirror layout for left-side cards (number on right, text right-aligned) */
.timeline-side--left .project-item { flex-direction: row-reverse; }
.timeline-side--left .project-item:hover { transform: translateX(-2px); }
.timeline-side--left .project-body { flex-direction: row-reverse; text-align: right; }

/* --- Tooltip ? icon --- */
.tooltip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background-color: #888;
    color: white;
    border-radius: 50%;
    font-size: 13px;
    cursor: pointer;
    margin-left: 2px;
    position: relative;
}
.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    width: 320px;
    background-color: #ffffff;
    color: #27282c;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    bottom: calc(100% + 10px);
    right: 0;
    white-space: normal;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    text-align: left;
}
.tooltip-icon--right::after {
    right: auto;
    left: 0;
}
.tooltip-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* --- Mobile --- */
@media (max-width: 767px) {
    .timeline-line,
    .timeline-dot { display: none; }

    .timeline-item {
        flex-direction: column;
        margin-bottom: 0;
    }
    .timeline-side {
        width: 100%;
        text-align: center;
        padding: 0;
    }
    .timeline-side--left,
    .timeline-side--right {
        text-align: center;
        padding: 0;
    }
    /* Left-side cards (Kooi, INSCALE) come first on mobile */
    .timeline-side--left { order: 1; }
    .timeline-side--right { order: 2; }

    .timeline-card { margin-bottom: 24px; }
    .timeline-buttons { justify-content: center; flex-wrap: wrap; gap: 24px; }
    .timeline-buttons--left .timeline-btn { order: 0; }
    /* Center timeline content on both sides */
    .timeline-side--left .timeline-content,
    .timeline-side--right .timeline-content { text-align: center; }
    .tooltip-icon { display: none; }
    .timeline-mini-dot { display: none; }
    .timeline-substep { margin-top: 0; }

    /* Highlight title accents and key-section bullets keep readable left/right */
    .timeline-side--left .key-title,
    .timeline-side--right .key-title { justify-content: center; }
    .highlight,
    .timeline-side--left .highlight { align-items: center; }
    .timeline-side--left .highlight-title,
    .highlight-title { align-self: center; }

    .timeline-side--left .project-item { flex-direction: row; }
    .timeline-side--left .project-item::before { left: 0; right: auto; }
    .timeline-side--left .project-body { flex-direction: row; text-align: left; }

    /* Only show "Om rollen" + "Resultater" buttons on mobile */
    .timeline-btn[data-content$="-areas"],
    .timeline-btn[data-content$="-projects"] { display: none; }
    /* Hide their content panels even when active (specificity > .is-active) */
    .timeline-content[id$="-areas"].is-active,
    .timeline-content[id$="-projects"].is-active { display: none; }
}



/* ============ Skills circle section ============ */
.skills-circle-section {
    padding: 0 0 100px;
}

.skills-circle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

/* ---- Circle ---- */
.circle-info {
    position: relative;
    width: 546px;
    height: 546px;
    max-width: 100%;
    margin: 0 auto;
}

.circle-info-ring {
    position: absolute;
    inset: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    pointer-events: none;
}

.circle-info-icons {
    position: absolute;
    inset: 0;
}

.circle-info-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #2c2c2c;
    color: #fff;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.circle-info-icon svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.circle-info-icon i {
    font-size: 32px;
    line-height: 1;
    color: currentColor;
}

.circle-info-icon:hover,
.circle-info-icon.is-active {
    background: #f08973;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 24px rgba(240,137,115,.45);
}

/* Position 8 icons evenly around the ring (radius ~243px) */
.circle-info-icon[data-pos="0"] { transform: translate(-50%, -50%) translate(0, -243px); }
.circle-info-icon[data-pos="1"] { transform: translate(-50%, -50%) translate(172px, -172px); }
.circle-info-icon[data-pos="2"] { transform: translate(-50%, -50%) translate(243px, 0); }
.circle-info-icon[data-pos="3"] { transform: translate(-50%, -50%) translate(172px, 172px); }
.circle-info-icon[data-pos="4"] { transform: translate(-50%, -50%) translate(0, 243px); }
.circle-info-icon[data-pos="5"] { transform: translate(-50%, -50%) translate(-172px, 172px); }
.circle-info-icon[data-pos="6"] { transform: translate(-50%, -50%) translate(-243px, 0); }
.circle-info-icon[data-pos="7"] { transform: translate(-50%, -50%) translate(-172px, -172px); }

.circle-info-icon.is-active[data-pos="0"] { transform: translate(-50%, -50%) translate(0, -243px) scale(1.1); }
.circle-info-icon.is-active[data-pos="1"] { transform: translate(-50%, -50%) translate(172px, -172px) scale(1.1); }
.circle-info-icon.is-active[data-pos="2"] { transform: translate(-50%, -50%) translate(243px, 0) scale(1.1); }
.circle-info-icon.is-active[data-pos="3"] { transform: translate(-50%, -50%) translate(172px, 172px) scale(1.1); }
.circle-info-icon.is-active[data-pos="4"] { transform: translate(-50%, -50%) translate(0, 243px) scale(1.1); }
.circle-info-icon.is-active[data-pos="5"] { transform: translate(-50%, -50%) translate(-172px, 172px) scale(1.1); }
.circle-info-icon.is-active[data-pos="6"] { transform: translate(-50%, -50%) translate(-243px, 0) scale(1.1); }
.circle-info-icon.is-active[data-pos="7"] { transform: translate(-50%, -50%) translate(-172px, -172px) scale(1.1); }

.circle-info-icon:hover[data-pos="0"] { transform: translate(-50%, -50%) translate(0, -243px) scale(1.1); }
.circle-info-icon:hover[data-pos="1"] { transform: translate(-50%, -50%) translate(172px, -172px) scale(1.1); }
.circle-info-icon:hover[data-pos="2"] { transform: translate(-50%, -50%) translate(243px, 0) scale(1.1); }
.circle-info-icon:hover[data-pos="3"] { transform: translate(-50%, -50%) translate(172px, 172px) scale(1.1); }
.circle-info-icon:hover[data-pos="4"] { transform: translate(-50%, -50%) translate(0, 243px) scale(1.1); }
.circle-info-icon:hover[data-pos="5"] { transform: translate(-50%, -50%) translate(-172px, 172px) scale(1.1); }
.circle-info-icon:hover[data-pos="6"] { transform: translate(-50%, -50%) translate(-243px, 0) scale(1.1); }
.circle-info-icon:hover[data-pos="7"] { transform: translate(-50%, -50%) translate(-172px, -172px) scale(1.1); }

.circle-info-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62%;
    text-align: center;
}

.circle-info-item {
    display: none;
    animation: ciFade .35s ease;
}
.circle-info-item.is-active { display: block; }

.circle-info-title {
    font-family: "Montserrat", Sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #27282c;
    margin: 0 0 12px;
}
.circle-info-item p {
    font-family: "Montserrat", Sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #54595f;
    margin: 0;
}

@keyframes ciFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Showcase (table + macbook + slideshow) ---- */
.showcase {
    text-align: left;
    position: relative;
    z-index: 1;
}

.showcase-title {
    font-family: "Montserrat", Sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #27282c;
    margin: 0 0 24px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.showcase-stage {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.showcase-macbook {
    position: relative;
    width: 100%;
    margin: 0 auto;
    z-index: 2;
}

.showcase-table {
    display: none;
}

.showcase-macbook-img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 2;
    pointer-events: none;
}

.showcase-screen {
    position: absolute;
    top: 7%;
    left: 14.4%;
    width: 71%;
    height: 83%;
    overflow: hidden;
    background: #0f1115;
    border-radius: 0;
    z-index: 4;
    container-type: inline-size;
}

/* ----- Showcase panels ----- */
.showcase-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease;
}
.showcase-panel.is-active {
    opacity: 1;
    visibility: visible;
}

/* ----- Web & Grafik image slides ----- */
.web-slide,
.grafik-slide,
.video-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .8s ease;
}
.web-slide { display: block; }
.web-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.web-slide,
.grafik-slide,
.video-slide { pointer-events: none; }
.web-slide.is-active,
.grafik-slide.is-active,
.video-slide.is-active { opacity: 1; pointer-events: auto; }

.video-slide { background: #000; }
.video-slide iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.showcase-panel[data-panel="grafik"] {
    background: #1a1c22;
}
.showcase-panel[data-panel="grafik"]::before {
    content: "Grafik kommer snart";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ----- Data dashboard slides ----- */
.dash-slide {
    position: absolute;
    inset: 0;
    padding: 6% 5%;
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 2.4cqi, 8px);
    background: linear-gradient(135deg, #1a1c22 0%, #27282c 100%);
    color: #fff;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}

.dash-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.dash-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 3px solid #f08973;
    padding-left: 8px;
}
.dash-tag {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(7px, 3cqi, 10px);
    letter-spacing: 1.5px;
    color: #f08973;
    text-transform: uppercase;
}
.dash-sub {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: clamp(6px, 2.5cqi, 8px);
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(4px, 1.8cqi, 6px);
    flex: 1;
    min-height: 0;
}
.dash-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: clamp(4px, 2cqi, 6px) clamp(5px, 2.7cqi, 9px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 0;
}
.dash-num {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(11px, 5.5cqi, 18px);
    line-height: 1;
    color: #f08973;
}
.dash-lbl {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: clamp(6px, 2.5cqi, 8px);
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.dash-foot {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(3px, 1.5cqi, 5px);
}
.dash-pill {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: clamp(6px, 2.5cqi, 8px);
    letter-spacing: 0.4px;
    padding: clamp(3px, 1.2cqi, 4px) clamp(5px, 2.5cqi, 8px);
    border-radius: 999px;
    background: rgba(240, 137, 115, 0.15);
    color: #f08973;
    border: 1px solid rgba(240, 137, 115, 0.3);
    text-transform: uppercase;
}

/* ----- Navigation arrows ----- */
.showcase-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity .25s ease, background .25s ease, transform .25s ease;
}
.showcase-screen:hover .showcase-arrow { opacity: 1; }
.showcase-arrow:hover { background: #f08973; }
.showcase-arrow--prev { left: 8px; }
.showcase-arrow--next { right: 8px; }
.showcase-arrow:focus-visible { opacity: 1; outline: 2px solid #f08973; outline-offset: 2px; }

/* ----- Caption bar ----- */
.showcase-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    padding: 8px 14px;
    background: rgb(70 70 70 / 85%);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    z-index: 9;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .3s ease, transform .3s ease;
}
.showcase-caption.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Progress bar ----- */
.showcase-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgb(70 70 70 / 85%);
    z-index: 11;
    overflow: hidden;
}
.showcase-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: #f08973;
    transition: width linear;
}

/* ----- Tab buttons under macbook ----- */
.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 0 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}
.showcase-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(39, 40, 44, 0.15);
    background: #fff;
    color: #27282c;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
    transition: all .25s ease;
}
.showcase-tab i { font-size: 13px; }
.showcase-tab:hover {
    border-color: #f08973;
    color: #f08973;
    transform: translateY(-2px);
}
.showcase-tab.is-active {
    background: #f08973;
    border-color: #f08973;
    color: #fff;
}

/* ---- Mobile accordion (replaces the radial circle) ---- */
.skills-accordion { display: none; }

@media (max-width: 900px) {
    .skills-circle-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Hide the circle layout entirely on mobile/tablet */
    .circle-info-ring,
    .circle-info-icons,
    .circle-info-center { display: none; }

    .circle-info {
        width: 100%;
        height: auto;
        max-width: 540px;
    }

    .skills-accordion {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 8px;
    }

    .skills-accordion-item {
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 12px;
        overflow: hidden;
        transition: border-color .25s ease, box-shadow .25s ease;
    }
    .skills-accordion-item.is-open {
        border-color: #f08973;
        box-shadow: 0 6px 18px rgba(240, 137, 115, 0.12);
    }

    .skills-accordion-head {
        width: 100%;
        background: transparent;
        border: 0;
        padding: 14px 18px;
        display: flex;
        align-items: center;
        gap: 14px;
        cursor: pointer;
        font-family: "Montserrat", sans-serif;
        text-align: left;
        color: #27282c;
    }
    .skills-accordion-head:focus-visible { outline: 2px solid #f08973; outline-offset: 2px; }

    .skills-accordion-icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        background: #2c2c2c;
        color: #fff;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background .25s ease;
    }
    .skills-accordion-item.is-open .skills-accordion-icon { background: #f08973; }
    .skills-accordion-icon i { font-size: 18px; }

    .skills-accordion-label {
        flex: 1;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;
        min-width: 0;
    }

    .skills-accordion-toggle {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        font-size: 24px;
        font-weight: 300;
        line-height: 22px;
        color: #8a8d96;
        text-align: center;
        transition: transform .3s ease, color .25s ease;
    }
    .skills-accordion-item.is-open .skills-accordion-toggle {
        transform: rotate(45deg);
        color: #f08973;
    }

    .skills-accordion-body {
        max-height: 0;
        overflow: hidden;
        padding: 0 18px;
        transition: max-height .35s ease, padding .35s ease;
    }
    .skills-accordion-item.is-open .skills-accordion-body {
        max-height: 600px;
        padding: 0 18px 16px;
    }
    .skills-accordion-body p {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        color: #54595f;
    }
}

/* ============ Footer (parallax reveal) ============ */
main {
    position: relative;
    z-index: 1;
    background: #ffffff;
    margin-bottom: 600px; /* reserve scroll space so the fixed footer can be revealed */
}

.hero {
    position: relative;
    z-index: 1;
    background: #ffffff;
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    min-height: 600px;
    padding: 100px 0 40px;
    background: #1f2125;
    color: #fff;
    overflow: hidden;
    font-family: 'Montserrat', system-ui, sans-serif;
}

.footer-portrait {
    position: absolute;
    right: 5%;
    bottom: 0;
    height: clamp(280px, 32vw, 510px);
    width: auto;
    max-width: 45%;
    object-fit: contain;
    object-position: right bottom;
    transform-origin: right bottom;
    pointer-events: none;
}

.footer-cv {
    position: absolute;
    left: 50%;
    top: 100px;
    transform: translateX(-50%) rotate(180deg);
    transform-origin: center;
    writing-mode: vertical-rl;
    font-weight: 800;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: 3px;
}

.footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.footer-brand { max-width: 360px; }

.footer-logo {
    margin: 0 0 22px;
    font-size: clamp(34px, 3.4vw, 46px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.01em;
}
.footer-logo span { display: block; }
.footer-logo-accent { color: #f08973; }

.footer-text {
    margin: 0 0 32px;
    font-size: 15px;
    line-height: 1.65;
    color: #c9ccd1;
}

.footer-btn { display: inline-block; }

/* Footer button: white by default, brand color on hover */
.footer-btn .adv-btn-wrap {
    color: #ffffff;
    border-color: #ffffff;
}
.footer-btn .adv-btn-wrap:hover {
    color: #f08973;
    border-color: #f08973;
}

.footer-copy {
    margin: 38px 0 0;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: #8a8f96;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-left: 40px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.footer-nav a {
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    color: #fff;
    transition: color 0.2s ease;
}
.footer-nav a:hover { color: #f08973; }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 6px 0 0;
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: #d8dbe0;
}
.footer-contact i {
    color: #f08973;
    font-size: 16px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.footer-contact a { color: inherit; transition: color 0.2s ease; }
.footer-contact a:hover { color: #f08973; }

@media (max-width: 768px) {
    .site-footer { position: relative; min-height: 0; padding: 80px 0 40px; text-align: center; }
    main { background: #ffffff; margin-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { padding-left: 0; align-items: center; }
    .footer-portrait,
    .footer-cv,
    .footer-nav { display: none; }
    .footer-brand { max-width: none; margin: 0 auto; }
    .footer-text { margin-left: auto; margin-right: auto; }
    .footer-contact { align-items: center; }
}

/* ============ Local SVG icons (Font Awesome replacements) ============ */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
}
.icon-chart-line             { -webkit-mask-image: url('../img/svg/icons/chart-line.svg');             mask-image: url('../img/svg/icons/chart-line.svg'); }
.icon-bullseye               { -webkit-mask-image: url('../img/svg/icons/bullseye.svg');               mask-image: url('../img/svg/icons/bullseye.svg'); }
.icon-magnifying-glass-chart { -webkit-mask-image: url('../img/svg/icons/magnifying-glass-chart.svg'); mask-image: url('../img/svg/icons/magnifying-glass-chart.svg'); }
.icon-robot                  { -webkit-mask-image: url('../img/svg/icons/robot.svg');                  mask-image: url('../img/svg/icons/robot.svg'); }
.icon-rectangle-ad           { -webkit-mask-image: url('../img/svg/icons/rectangle-ad.svg');           mask-image: url('../img/svg/icons/rectangle-ad.svg'); }
.icon-laptop-code            { -webkit-mask-image: url('../img/svg/icons/laptop-code.svg');            mask-image: url('../img/svg/icons/laptop-code.svg'); }
.icon-gears                  { -webkit-mask-image: url('../img/svg/icons/gears.svg');                  mask-image: url('../img/svg/icons/gears.svg'); }
.icon-handshake              { -webkit-mask-image: url('../img/svg/icons/handshake.svg');              mask-image: url('../img/svg/icons/handshake.svg'); }
.icon-chart-column           { -webkit-mask-image: url('../img/svg/icons/chart-column.svg');           mask-image: url('../img/svg/icons/chart-column.svg'); }
.icon-palette                { -webkit-mask-image: url('../img/svg/icons/palette.svg');                mask-image: url('../img/svg/icons/palette.svg'); }
.icon-video                  { -webkit-mask-image: url('../img/svg/icons/video.svg');                  mask-image: url('../img/svg/icons/video.svg'); }
.icon-chevron-left           { -webkit-mask-image: url('../img/svg/icons/chevron-left.svg');           mask-image: url('../img/svg/icons/chevron-left.svg'); }
.icon-chevron-right          { -webkit-mask-image: url('../img/svg/icons/chevron-right.svg');          mask-image: url('../img/svg/icons/chevron-right.svg'); }
.icon-envelope               { -webkit-mask-image: url('../img/svg/icons/envelope.svg');               mask-image: url('../img/svg/icons/envelope.svg'); }
.icon-phone                  { -webkit-mask-image: url('../img/svg/icons/phone.svg');                  mask-image: url('../img/svg/icons/phone.svg'); }
.icon-brand-linkedin         { -webkit-mask-image: url('../img/svg/icons/linkedin.svg');               mask-image: url('../img/svg/icons/linkedin.svg'); }

/* ============ Scroll reveal system ============
   Uses keyframe animations (not transitions) so the entrance
   always plays when .is-visible is added — including for elements
   that are already in the viewport on initial page load. */
.reveal {
    opacity: 0;
    will-change: opacity, transform, filter;
}
.reveal.is-visible {
    animation: revealUp .9s cubic-bezier(.16,1,.3,1) both;
}
.reveal.reveal-left.is-visible  { animation-name: revealLeft; }
.reveal.reveal-right.is-visible { animation-name: revealRight; }
.reveal.reveal-scale.is-visible { animation-name: revealScale; }
.reveal.reveal-zoom.is-visible  { animation-name: revealZoom; }

@keyframes revealUp {
    0%   { opacity: 0; transform: translateY(48px); filter: blur(2px); }
    100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes revealLeft {
    0%   { opacity: 0; transform: translateX(-60px); filter: blur(2px); }
    100% { opacity: 1; transform: translateX(0);     filter: blur(0); }
}
@keyframes revealRight {
    0%   { opacity: 0; transform: translateX(60px); filter: blur(2px); }
    100% { opacity: 1; transform: translateX(0);    filter: blur(0); }
}
@keyframes revealScale {
    0%   { opacity: 0; transform: scale(.92); filter: blur(4px); }
    100% { opacity: 1; transform: scale(1);   filter: blur(0); }
}
@keyframes revealZoom {
    0%   { opacity: 0; transform: scale(1.06); filter: blur(3px); }
    100% { opacity: 1; transform: scale(1);    filter: blur(0); }
}

/* Stagger children inside a reveal-stagger container */
.reveal-stagger > * {
    opacity: 0;
    will-change: opacity, transform;
}
.reveal-stagger.is-visible > * {
    animation: revealUp .8s cubic-bezier(.16,1,.3,1) both;
}
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: .15s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: .25s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: .45s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: .55s; }
.reveal-stagger.is-visible > *:nth-child(7) { animation-delay: .65s; }
.reveal-stagger.is-visible > *:nth-child(8) { animation-delay: .75s; }

/* Section headings: animate big background word, sub-heading, and title separately.
   The background word is centered with translateY(-50%) — bake that into the keyframe. */
.advanced-heading.reveal .advanced-heading-content,
.advanced-heading.reveal .sub-heading,
.advanced-heading.reveal .heading-title { opacity: 0; }

.advanced-heading.reveal.is-visible .advanced-heading-content {
    animation: ahContentIn 1s cubic-bezier(.16,1,.3,1) .15s both;
}
.advanced-heading.reveal.is-visible .sub-heading {
    animation: revealUp .9s cubic-bezier(.16,1,.3,1) .25s both;
}
.advanced-heading.reveal.is-visible .heading-title {
    animation: revealUp .9s cubic-bezier(.16,1,.3,1) .4s both;
}

@keyframes ahContentIn {
    0%   { opacity: 0; transform: translateY(calc(-50% + 30px)) scaleX(.9); }
    100% { opacity: 1; transform: translateY(-50%)              scaleX(1);  }
}

/* Lottie arrow — simple fade + tiny lift in (the arrow already animates downward, so don't rotate it) */
.section-divider.reveal { opacity: 0; }
.section-divider.reveal.is-visible {
    animation: lottieFadeIn 1s cubic-bezier(.16,1,.3,1) both;
}

@keyframes lottieFadeIn {
    0%   { opacity: 0; transform: translateY(-12px); filter: blur(2px); }
    100% { opacity: 1; transform: translateY(0);     filter: blur(0); }
}

/* ============ Improved timeline content transition ============ */
.timeline-content.is-active {
    display: block;
    animation: tlContentIn .55s cubic-bezier(.16,1,.3,1) both;
}
@keyframes tlContentIn {
    0%   { opacity: 0; transform: translateY(10px) scale(.985); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}
.timeline-content.is-leaving {
    display: block;
    animation: tlContentOut .22s cubic-bezier(.4,0,.7,.2) forwards;
    pointer-events: none;
}
@keyframes tlContentOut {
    0%   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
    100% { opacity: 0; transform: translateY(-6px) scale(.99);  filter: blur(3px); }
}

/* Pulse the active sub-button briefly when it becomes active */
.timeline-btn.is-active {
    animation: tlBtnPulse .5s ease;
}
@keyframes tlBtnPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Tab section cross-fade between Erhvervserfaring / Uddannelse / Frivilligt */
.timeline-section.is-active {
    animation: tlSectionIn .55s cubic-bezier(.16,1,.3,1) both;
}
@keyframes tlSectionIn {
    0%   { opacity: 0; transform: translateY(14px); filter: blur(3px); }
    100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Reduced motion: kill big movement, keep simple opacity */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-stagger > *,
    .advanced-heading.reveal .advanced-heading-content,
    .advanced-heading.reveal .sub-heading,
    .advanced-heading.reveal .heading-title,
    .section-divider.reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: opacity .3s ease !important;
    }
    .advanced-heading.reveal .advanced-heading-content { transform: translateY(-50%) !important; }
    .reveal.is-visible,
    .reveal-stagger.is-visible > *,
    .advanced-heading.reveal.is-visible .advanced-heading-content,
    .advanced-heading.reveal.is-visible .sub-heading,
    .advanced-heading.reveal.is-visible .heading-title,
    .section-divider.reveal.is-visible { animation: none !important; }
    .section-divider.reveal.is-visible .divider-lottie { animation: none !important; }
    .hero-bar,
    .hero-title,
    .hero-portrait,
    .icon-linkedin,
    .icon-meta,
    .services-icon,
    .tagline,
    .top-nav li {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
    }
    .hero-title { animation: titleZoom 14s ease-in-out infinite !important; }
}
