/* =========================================================
   Bomholt Software — Rent, moderne portfolio-tema (light + dark)
   ========================================================= */

:root {
    --radius: 16px;
    --radius-sm: 10px;
    --max: 1240px;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* ---- LIGHT (default) ---- */
[data-theme="light"] {
    --bg: #fbfbfd;
    --bg-alt: #f4f5f8;
    --surface: #ffffff;
    --ink: #14161c;
    --muted: #646b7a;
    --border: #e7e9ef;
    --accent: #2f66c7;       /* blå (matcher logo) */
    --accent-deep: #14233f;  /* mørkeblå / navy */
    --accent-soft: #e9f0fb;
    --accent-ink: #ffffff;
    --shadow: 0 1px 2px rgba(20,22,28,.04), 0 8px 24px rgba(20,22,28,.06);
    --shadow-lg: 0 4px 12px rgba(20,22,28,.06), 0 18px 48px rgba(20,22,28,.10);
}

/* ---- DARK ---- */
[data-theme="dark"] {
    --bg: #0a1322;
    --bg-alt: #0e1828;
    --surface: #132035;
    --ink: #eaf0f9;
    --muted: #94a3bc;
    --border: #1f2d44;
    --accent: #5b95e6;
    --accent-deep: #1b3a66;
    --accent-soft: #142844;
    --accent-ink: #0a1322;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.35), 0 18px 48px rgba(0,0,0,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }

/* ---------- NAV ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(18px, 5vw, 56px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.04rem;
}
.nav__logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform .3s ease;
}
.nav__brand:hover .nav__logo { transform: scale(1.06); }
/* Gør monogrammet lyst i dark mode, så det ikke forsvinder mod navy */
[data-theme="dark"] .nav__logo { filter: brightness(0) invert(1); }

.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; gap: 8px; }
.nav__links a {
    color: var(--muted);
    font-weight: 500;
    font-size: .94rem;
    padding: 7px 12px;
    border-radius: 8px;
    transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-alt); }

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .03em;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 55%, transparent);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: 10px;
    transition: color .2s, border-color .2s, transform .15s;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    font-size: 1.05rem;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 55%, transparent);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: 10px;
    cursor: pointer;
    transition: color .2s, border-color .2s, transform .15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: clamp(44px, 8vw, 96px) clamp(18px, 5vw, 56px) clamp(56px, 9vw, 104px);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
/* To drivende, slørede farveblobs */
.hero__bg::before,
.hero__bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: var(--blob-opacity, .28);
    will-change: transform;
}
.hero__bg::before {
    width: 440px; height: 440px;
    background: var(--accent);
    top: -110px; right: 4%;
    animation: drift-a 16s ease-in-out infinite;
}
.hero__bg::after {
    width: 360px; height: 360px;
    background: var(--accent-deep);
    bottom: -130px; left: 2%;
    animation: drift-b 20s ease-in-out infinite;
}
[data-theme="dark"] .hero__bg::before,
[data-theme="dark"] .hero__bg::after { --blob-opacity: .42; }

@keyframes drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-60px, 50px) scale(1.12); }
}
@keyframes drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(70px, -40px) scale(1.08); }
}

/* Glød der følger musen */
.hero__glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(320px circle at var(--mx, 72%) var(--my, 32%),
                color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%);
    transition: opacity .4s ease;
}
.hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 44px;
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 500;
    font-size: .88rem;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.hero__title {
    font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    margin-bottom: 8px;
}
.hero__role {
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.15rem;
    margin-bottom: 18px;
}
.hero__tagline {
    color: var(--muted);
    font-size: 1.22rem;
    max-width: 440px;
    margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__model {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
/* Blød, rund faded baggrund bag 3D-modellen */
.hero__model::before {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 92%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        color-mix(in srgb, var(--accent) 26%, transparent) 0%,
        color-mix(in srgb, var(--accent) 12%, transparent) 45%,
        transparent 70%);
    filter: blur(6px);
    z-index: 0;
}
model-viewer {
    position: relative;
    z-index: 1;
    width: 100%;
    height: clamp(330px, 46vw, 500px);
    background: transparent;
    --poster-color: transparent;
    opacity: 0;
    transition: opacity .7s ease;
}
/* Toner blødt ind når modellen er indlæst */
model-viewer.is-ready { opacity: 1; }
/* Skjul model-viewerens indbyggede load-bar (grå streg i toppen) + tom poster */
model-viewer::part(default-progress-bar) { display: none; }
.model__poster { width: 100%; height: 100%; background: transparent; }
.hero__model-hint {
    color: var(--muted);
    font-size: .82rem;
    margin-top: 10px;
}
.model__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    font-size: .9rem;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 500;
    font-size: .98rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--big { font-size: 1.1rem; padding: 15px 34px; margin-top: 12px; }

/* ---------- SECTIONS ---------- */
.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(50px, 8vw, 92px) clamp(18px, 5vw, 56px);
}
.section--alt {
    max-width: none;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section--alt .section__head,
.section--alt .timeline { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: 42px; }
.section__head h2 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: 10px; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- INTRO ---------- */
.section--intro {
    position: relative;
    padding-top: clamp(36px, 5vw, 56px);
    padding-bottom: clamp(36px, 5vw, 56px);
}
.intro {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    max-width: 900px;
}
.intro__photo {
    position: relative;
    z-index: 2;                 /* foto ligger OVER støvet */
    flex-shrink: 0;
    width: clamp(120px, 16vw, 168px);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    box-shadow: var(--shadow-lg);
    opacity: 0;
}
/* Flyver ind fra venstre når intro kommer i syne */
.intro__photo.is-flown { animation: photo-fly 1.7s cubic-bezier(.2, .8, .25, 1) forwards; }
@keyframes photo-fly {
    0%   { opacity: 0; transform: translateX(-120vw) rotate(-10deg); }
    55%  { opacity: 1; }
    100% { opacity: 1; transform: translateX(0) rotate(0); }
}
/* Blåt støv der efterlades og fader væk */
.dust {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, color-mix(in srgb, var(--accent) 60%, transparent) 45%, transparent 72%);
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
}
.dust.is-on { animation: dust-fade var(--dur, 2200ms) ease-out var(--delay, 0ms) forwards; }
@keyframes dust-fade {
    0%   { opacity: 0; transform: translate(0, 0) scale(.3); }
    14%  { opacity: .85; }
    55%  { opacity: .7; transform: translate(calc(var(--dx, 0px) * .5), calc(var(--dy, -16px) * .5)) scale(1); }
    100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -16px)) scale(1.2); }
}
.intro__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg);
    display: block;
}
.intro__text {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: var(--ink);
}

/* ---------- SERVICES (bento-grid) ---------- */
.bento {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-auto-rows: 1fr;
    gap: 20px;
}
.bento__item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.bento__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Fremhævet felt — fylder venstre kolonne over to rækker */
.bento__item--feature {
    grid-row: span 2;
    justify-content: space-between;
    background: linear-gradient(150deg, var(--accent), var(--accent-deep));
    border-color: transparent;
    color: #fff;
}
.bento__item--feature::after {
    content: "";
    position: absolute;
    right: -70px; top: -70px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
}

/* Svævende bobler i det fremhævede felt */
.bubbles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: var(--radius);
}
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .12);
    will-change: transform;
}
/* Tilfældigt mønster: størrelse + placering + bevægelse pr. boble */
.bubble:nth-child(1) { width: 90px;  height: 90px;  left: 6%;   top: 58%;  animation: float-bub 11s ease-in-out infinite; }
.bubble:nth-child(2) { width: 46px;  height: 46px;  left: 22%;  top: 18%;  animation: float-bub 8s  ease-in-out infinite .6s; }
.bubble:nth-child(3) { width: 26px;  height: 26px;  left: 44%;  top: 70%;  animation: float-bub 7s  ease-in-out infinite 1.2s; }
.bubble:nth-child(4) { width: 64px;  height: 64px;  left: 58%;  top: 30%;  animation: float-bub 13s ease-in-out infinite .3s; }
.bubble:nth-child(5) { width: 18px;  height: 18px;  left: 34%;  top: 44%;  animation: float-bub 6s  ease-in-out infinite .9s; }
.bubble:nth-child(6) { width: 120px; height: 120px; left: 70%;  top: 62%;  animation: float-bub 15s ease-in-out infinite 1.5s; }
.bubble:nth-child(7) { width: 34px;  height: 34px;  left: 14%;  top: 84%;  animation: float-bub 9s  ease-in-out infinite .4s; }

@keyframes float-bub {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(14px, -20px); }
    66%      { transform: translate(-12px, -8px); }
}
.bento__item--feature .bento__icon { background: rgba(255,255,255,.18); color: #fff; }
.bento__item--feature .bento__title { font-size: 1.9rem; }
.bento__item--feature .bento__desc { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 340px; }

.bento__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    font-size: 1.4rem;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 14px;
}
.bento__body { display: flex; flex-direction: column; gap: 7px; position: relative; z-index: 1; }
.bento__title { font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.bento__desc { color: var(--muted); }

/* ---------- CARDS ---------- */
/* Full-bleed projekt-sektion — fylder hele sidens bredde */
.section--projects {
    max-width: none;
    padding-left: clamp(16px, 3.5vw, 56px);
    padding-right: clamp(16px, 3.5vw, 56px);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}
/* Større kort i projekt-sektionen */
.section--projects .cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
    gap: 30px;
}
.section--projects .card__title { font-size: 1.7rem; }
.section--projects .card__desc { font-size: 1.02rem; }
.section--projects .card__overlay { padding: 28px 30px; }
.section--projects .card__mark { font-size: 5rem; }

/* Full-bleed billedkort */
.card {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Medie-lag: billede eller gradient fylder hele kortet */
.card__media { position: absolute; inset: 0; z-index: 0; background: var(--bg-alt); }
.card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s ease;
}
.card:hover .card__media img { transform: scale(1.06); }
.card__media--gradient {
    background: linear-gradient(130deg, var(--g1), var(--g2));
    background-size: 200% 200%;
    animation: cover-shift 9s ease infinite;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(30px, 13%, 70px);
}
.card__media--gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.2) 1.3px, transparent 1.3px);
    background-size: 16px 16px;
    opacity: .5;
}
.card__mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 4rem;
    color: rgba(255,255,255,.95);
    text-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.card__media .card__mark-img {
    position: relative;
    z-index: 1;
    width: clamp(80px, 20%, 140px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.22));
    transition: transform .3s ease;
}
.card:hover .card__mark-img { transform: scale(1.08); }
.card--static:hover .card__mark-img { transform: none; }
@keyframes cover-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Tekst-overlay i bunden */
.card__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 24px 22px;
}
/* Fade/glas-lag bag teksten — påvirker IKKE selve titlen */
.card__overlay::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 150%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to top,
        rgba(10,12,18,.9) 0%,
        rgba(10,12,18,.7) 40%,
        rgba(10,12,18,.25) 75%,
        rgba(10,12,18,0) 100%);
}
/* Slør kun bag selve teksten — toner blødt ud foroven */
.card__overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    -webkit-mask-image: linear-gradient(to top, #000 65%, transparent 100%);
    mask-image: linear-gradient(to top, #000 65%, transparent 100%);
}
.card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.card__overlay .tag {
    font-size: .74rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
    padding: 4px 11px;
    border-radius: 999px;
}
.card__title { font-size: 1.4rem; font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.card__desc { color: rgba(255,255,255,.86); font-size: .96rem; }
.card__link { color: #fff; font-weight: 600; font-size: .95rem; }
.card__link::after { content: ""; }
.card:hover .card__link { text-decoration: underline; text-underline-offset: 3px; }

.card--static { cursor: default; }
.card--static:hover { transform: none; box-shadow: var(--shadow); }
.card--static:hover .card__media img { transform: none; }

/* "Næste projekt?"-kort (CTA) */
.card--cta {
    align-items: stretch;
    color: #fff;
    border-color: transparent;
}
.card--cta .card__cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    width: 100%;
    padding: 30px;
    background: linear-gradient(140deg, var(--accent), var(--accent-deep));
}
.card--cta .card__cta::after {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
}
.card__cta-eyebrow {
    position: relative; z-index: 1;
    font-size: .8rem; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    color: rgba(255,255,255,.85);
}
.card__cta h3 { position: relative; z-index: 1; font-size: 1.7rem; font-weight: 600; }
.card__cta p { position: relative; z-index: 1; color: rgba(255,255,255,.88); max-width: 280px; }
.card--cta .card__link {
    position: relative; z-index: 1;
    margin-top: 8px;
    padding: 10px 22px;
    background: #fff;
    color: var(--accent);
    border-radius: 999px;
    transition: transform .15s ease;
}
.card--cta:hover .card__link { transform: translateY(-2px); text-decoration: none; }

/* ---------- ERFARING & UDDANNELSE (to kolonner) ---------- */
.exp-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.exp-col .section__head { margin-bottom: 24px; }
.exp-col .section__head h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.exp-col .section__head p { font-size: 1rem; }

/* ---------- TIMELINE ---------- */
.timeline { display: flex; flex-direction: column; }
.timeline__item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 28px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}
.timeline__item:first-child { padding-top: 0; }
.timeline__item:last-child { border-bottom: none; padding-bottom: 0; }
.timeline__period {
    color: var(--muted);
    font-weight: 500;
    font-size: .9rem;
    padding-top: 3px;
}
.timeline__body { position: relative; }
.timeline__logo {
    position: absolute;
    top: 0; right: 0;
    width: 62px;
    height: 42px;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: contain;
}
.timeline__period.is-live { display: inline-flex; align-items: center; gap: 7px; }
.timeline__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #34d36b;
    box-shadow: 0 0 0 0 rgba(52,211,107,.6);
    animation: pulse-dot 2.2s ease-out infinite;
}
.timeline__body h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: 6px; }
/* Giv plads til logo-chippen i toppen til højre, så tekst ikke går under */
.timeline__body.has-logo { padding-right: 76px; }
.timeline__at { color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.timeline__body a { color: var(--accent); }
.timeline__body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.timeline__body p { color: var(--muted); }

/* ---------- CONTACT ---------- */
/* ---- Genbrugelig glas-effekt (frosted glass) ---- */
.glass {
    background: color-mix(in srgb, var(--surface) 55%, transparent);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    box-shadow: var(--shadow-lg);
}

.section--contact {
    position: relative;
    max-width: none;
    text-align: center;
    padding-top: clamp(60px, 9vw, 104px);
    padding-bottom: clamp(60px, 9vw, 104px);
    overflow: hidden;
}
/* Bløde blobs bag glasset, så effekten kommer til sin ret */
.contact__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.contact__bg::before,
.contact__bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: var(--blob-opacity, .35);
}
.contact__bg::before { width: 360px; height: 360px; background: var(--accent); top: -60px; left: 12%; }
.contact__bg::after  { width: 320px; height: 320px; background: var(--accent-deep); bottom: -80px; right: 14%; }
[data-theme="dark"] .contact__bg::before,
[data-theme="dark"] .contact__bg::after { --blob-opacity: .45; }

/* Spotlight der følger musen i kontakt-sektionen */
.contact__glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 40%),
                color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
}

.contact__card {
    position: relative;
    z-index: 1;
    max-width: 940px;
    margin: 0 auto;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

/* Venstre side — overskrift + status */
.contact__status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink);
    background: color-mix(in srgb, var(--surface) 50%, transparent);
    border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.contact__status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.55);
    animation: pulse-dot 2.2s ease-out infinite;
}
@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
    70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.section--contact h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.section--contact p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

/* Højre side — kontakt-metoder stablet */
.contact__methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact__method {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    transition: transform .15s ease, padding .15s ease;
}
.contact__method:first-child { border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.contact__method:hover { transform: translateX(6px); }
.contact__method:hover .contact__icon { background: var(--accent); color: #fff; }
.contact__arrow {
    margin-left: auto;
    color: var(--accent);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s ease, transform .2s ease;
}
.contact__method:hover .contact__arrow { opacity: 1; transform: translateX(0); }
.contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    font-size: 1.3rem;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 12px;
    flex-shrink: 0;
}
.contact__icon svg { width: 22px; height: 22px; display: block; }
.contact__icon--li { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; }
.contact__text { display: flex; flex-direction: column; line-height: 1.25; }
.contact__label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.contact__value { font-size: 1.05rem; font-weight: 600; color: var(--ink); }

/* ---------- FOOTER ---------- */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 56px) 0;
    color: var(--muted);
    font-size: .92rem;
}
.footer__main {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    padding-bottom: 36px;
}
.footer__logo {
    width: clamp(150px, 18vw, 200px);
    height: auto;
    display: block;
    margin-bottom: 16px;
}
[data-theme="dark"] .footer__logo { filter: brightness(0) invert(1); }
.footer__tagline { max-width: 320px; margin-bottom: 10px; line-height: 1.5; }
.footer__loc { font-size: .85rem; opacity: .8; }
.footer__col h4 {
    font-family: var(--font-display);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink);
    margin-bottom: 14px;
}
.footer__col a {
    display: block;
    color: var(--muted);
    padding: 5px 0;
    width: fit-content;
    transition: color .2s;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    font-size: .84rem;
}
.footer__bottom p { margin: 0; }
.footer__cvr { opacity: .8; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Forskudt indtoning i grids */
.cards .card:nth-child(2),
.bento__item:nth-child(2) { transition-delay: .09s; }
.cards .card:nth-child(3),
.bento__item:nth-child(3) { transition-delay: .18s; }
.cards .card:nth-child(4) { transition-delay: .27s; }

/* ---------- FOLD-UD (kun mobil) ---------- */
.fold-toggle {
    display: none; /* skjult på desktop */
    width: 100%;
    margin-bottom: 18px;
    padding: 13px 20px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 12px;
    cursor: pointer;
}
.fold-toggle::after { content: " ↓"; }
.fold-toggle.is-open::after { content: " ↑"; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__text { order: 2; }
    .hero__model { order: 1; }
    .hero__cta { justify-content: center; }
    .hero__tagline { margin-left: auto; margin-right: auto; }
    .hero__eyebrow { margin-left: auto; margin-right: auto; }
    .nav__links { display: none; }
    .timeline__item { grid-template-columns: 1fr; gap: 6px; }
    .bento { grid-template-columns: 1fr; }
    .bento__item--feature { grid-row: auto; }
    .intro { flex-direction: column; text-align: center; }
    .exp-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact__card { grid-template-columns: 1fr; gap: 28px; }

    /* Fold-ud: vis knap, fold indhold sammen indtil åbnet */
    .fold-toggle { display: block; }
    .foldable:not(.is-open) { display: none; }
    .foldable-cards:not(.is-open) .card:not(.card--cta) { display: none; }

    /* Footer stables */
    .footer__main { grid-template-columns: 1fr; gap: 30px; }
    .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transition: none; }
    .hero__bg::before, .hero__bg::after,
    .hero__model, .card__media--gradient, .bubble, .contact__status-dot, .timeline__dot { animation: none; }
    .card__media img { transition: none; }
    .intro__photo { opacity: 1 !important; animation: none !important; }
    .dust { display: none !important; }
}
