/* =========================================================
   sebastianmelgaard.dk — stylesheet
   Farver: cyan (primær) · grøn (sekundær) · rød (accent)
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Farver */
  --cyan:        #00b4c8;
  --cyan-dark:   #008b9c;
  --cyan-soft:   #e3f8fb;
  --green:       #10a86b;
  --green-dark:  #0b7d4f;
  --green-soft:  #e4f7ee;
  --red:         #e0453c;
  --red-dark:    #b8302a;
  --red-soft:    #fdeceb;

  /* Neutrale */
  --ink:         #10151c;
  --ink-2:       #3d4854;
  --ink-3:       #6b7683;
  --line:        #e5e9ee;
  --bg:          #ffffff;
  --surface:     #f6f8fa;
  --surface-2:   #eef2f6;

  /* Typografi */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Mål */
  --container: 1140px;
  --radius:    16px;
  --radius-sm: 10px;
  --nav-h:     72px;

  /* Skygger */
  --shadow-sm: 0 1px 2px rgba(16, 21, 28, .06);
  --shadow:    0 6px 24px -8px rgba(16, 21, 28, .14);
  --shadow-lg: 0 24px 60px -20px rgba(16, 21, 28, .22);

  /* Bevægelse */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset / basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan-dark); text-decoration: none; }
a:hover { color: var(--cyan); }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--cyan); color: #fff; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head { max-width: 700px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-3); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}
.eyebrow--green { color: var(--green-dark); }
.eyebrow--red   { color: var(--red-dark); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Bred hovedspalte + smal sidespalte */
.grid--sidebar { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid--sidebar { grid-template-columns: 1fr; } }

/* ---------- 4. Knapper ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(120deg, var(--cyan), var(--green));
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(0, 180, 200, .9);
}
.btn--primary:hover { color: #fff; box-shadow: 0 14px 32px -12px rgba(0, 180, 200, 1); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-dark); background: var(--cyan-soft); }

.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(224, 69, 60, .85);
}
.btn--red:hover { color: #fff; background: var(--red-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 5. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand__text { font-size: 1rem; }

.nav__links { display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link.is-active { color: var(--ink); font-weight: 600; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.nav__actions { display: flex; align-items: center; gap: 10px; }

/* Sprogskifter */
.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}
.lang__btn {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang__btn[aria-pressed="true"] {
  background: linear-gradient(120deg, var(--cyan), var(--green));
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.brand__text { white-space: nowrap; }

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .brand__text { font-size: .92rem; }
}
@media (max-width: 400px) {
  .brand__text { display: none; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 24px 26px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 13px 14px; font-size: 1.05rem; }
  .nav__link.is-active::after { display: none; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(70px, 10vw, 120px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16, 168, 107, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(16, 168, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 168, 107, 0); }
}

.hero h1 { margin-bottom: .35em; }
.hero__roles {
  display: block;
  min-height: 1.3em;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--cyan-dark);
  letter-spacing: -.01em;
}
.hero__roles .caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -.16em;
  background: var(--green);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

.hero__lead {
  max-width: 52ch;
  margin: 22px 0 30px;
  font-size: 1.12rem;
  color: var(--ink-2);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }

/* Portrætkort */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
/* Vises hvis portrætbilledet endnu ikke er lagt op */
.portrait__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: rgba(255, 255, 255, .9);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -.04em;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(16, 21, 28, .55), transparent);
}
.portrait__tag {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
}

/* Baggrundsblobs */
.blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
}
.blob--cyan  { width: 420px; height: 420px; background: var(--cyan);  top: -140px; right: -80px; }
.blob--green { width: 340px; height: 340px; background: var(--green); bottom: -160px; left: -120px; opacity: .35; }
.blob--red   { width: 240px; height: 240px; background: var(--red);   top: 40%; left: 45%; opacity: .16; }

/* Dæmp baggrundsfarverne på små skærme, så teksten står skarpt */
@media (max-width: 760px) {
  .blob { filter: blur(60px); }
  .blob--cyan  { width: 260px; height: 260px; opacity: .3; top: -110px; right: -70px; }
  .blob--green { width: 220px; height: 220px; opacity: .22; }
  .blob--red   { display: none; }
}

/* ---------- 7. Kort ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6dde5; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-3); font-size: .97rem; }

.card__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}
.card__icon svg { width: 22px; height: 22px; }
.card--green .card__icon { background: var(--green-soft); color: var(--green-dark); }
.card--red .card__icon   { background: var(--red-soft);   color: var(--red-dark); }

.card__link {
  margin-top: auto;
  padding-top: 18px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--cyan-dark);
}
.card__link::after { content: " →"; transition: margin .2s var(--ease); }
.card:hover .card__link::after { margin-left: 4px; }

/* Rollekort (forside) */
.role-card { gap: 4px; }
.role-card__org { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.role-card__title { font-size: .95rem; color: var(--cyan-dark); font-weight: 600; }
.role-card__period { margin-top: 6px; font-size: .84rem; color: var(--ink-3); font-family: var(--font-mono); }

/* ---------- 8. Statistik ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.stat {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  text-align: center;
}
.stat__num {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: .88rem; color: var(--ink-3); }

/* ---------- 9. Tidslinje ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--green) 55%, var(--line));
}
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 7px;
  width: 16px; height: 16px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan);
}
.tl-item--current::before { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.tl-item--past::before    { background: var(--ink-3); box-shadow: 0 0 0 2px var(--line); }

.tl-item__period {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .01em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.tl-item__org { font-size: 1.18rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.tl-item__role { font-weight: 600; color: var(--cyan-dark); margin-bottom: 8px; }
.tl-item__desc { font-size: .97rem; color: var(--ink-3); max-width: 62ch; }

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: 3px;
}

/* ---------- 10. Kompetencer ---------- */
.skill-group { padding: 30px; }
.skill-group h3 { display: flex; align-items: center; gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.tag {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.tag:hover { border-color: var(--cyan); color: var(--cyan-dark); background: var(--cyan-soft); }

.meter { margin-bottom: 18px; }
.meter__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: .94rem;
}
.meter__name { font-weight: 600; color: var(--ink); }
.meter__level { font-size: .84rem; color: var(--ink-3); }
.meter__track { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter__fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 1.2s var(--ease);
}

/* ---------- 11. Projekter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.filter.is-active {
  background: linear-gradient(120deg, var(--cyan), var(--green));
  border-color: transparent;
  color: #fff;
}

.project {
  overflow: hidden;
  padding: 0;
}
.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.project__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: .85rem;
  font-family: var(--font-mono);
}
.project__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.project__cat {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.project__year { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-3); margin-bottom: 12px; }
.project__stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.project__stack span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .78rem;
  color: var(--ink-3);
}

.is-hidden { display: none !important; }

/* ---------- 12. CTA-bånd ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 76px);
  border-radius: 28px;
  background: linear-gradient(125deg, #0b2b31, #10151c 60%);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .72); max-width: 56ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 30px; }
.cta .btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.cta__glow {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .34;
  pointer-events: none;
}
.cta__glow--1 { background: var(--cyan);  top: -180px; left: -60px; }
.cta__glow--2 { background: var(--green); bottom: -200px; right: -40px; }

/* ---------- 13. Kontakt ---------- */
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-item:hover { transform: translateX(4px); border-color: var(--cyan); box-shadow: var(--shadow-sm); color: var(--ink); }
.contact-item__icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__label {
  display: block;
  margin-bottom: 2px;
  font-size: .72rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
}
.contact-item__value { display: block; font-weight: 600; word-break: break-word; }

.embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  min-height: 620px;
}
.embed iframe { width: 100%; min-height: 620px; border: 0; display: block; }
.embed__fallback { padding: 40px; text-align: center; color: var(--ink-3); }

/* ---------- 14. Footer ---------- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: .94rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 30px; } }
.footer h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.footer li { margin-bottom: 9px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--cyan-dark); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--ink-3);
}
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  color: var(--ink-2);
  transition: all .2s var(--ease);
}
.socials a:hover { border-color: var(--cyan); color: var(--cyan-dark); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- 15. Sideheader (undersider) ---------- */
.page-head {
  position: relative;
  padding: clamp(56px, 8vw, 92px) 0 clamp(36px, 5vw, 56px);
  overflow: hidden;
}
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-head p { max-width: 60ch; font-size: 1.08rem; color: var(--ink-3); }

/* ---------- 16. Prosa ---------- */
.prose { max-width: 68ch; }
.prose h3 { margin-top: 2em; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--cyan), var(--green));
}

.quote {
  margin: 0;
  padding: 26px 30px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--cyan-soft);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  font-style: italic;
}

/* ---------- 17. Scroll-effekter ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 18. Hjælpeklasser ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 18px; }
.mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { left: 24px; color: #fff; }

@media print {
  .nav, .footer, .cta, .btn { display: none !important; }
  body { font-size: 12pt; }
}

/* ---------- 19. Logo-bånd ---------- */
.logo-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
/* Ti logoer fordeles pænt på to rækker á fem */
@media (min-width: 1000px) {
  .logo-band { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 999px) and (min-width: 620px) {
  .logo-band { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 619px) {
  .logo-band { grid-template-columns: repeat(2, 1fr); }
}
.logo-item {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.logo-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6dde5; }
.logo-item img {
  max-width: 100%;
  max-height: 66px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .82;
  transition: opacity .3s var(--ease);
}
.logo-item:hover img { opacity: 1; }
/* Bruges hvis der ikke findes et logo endnu */
.logo-item__text {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.3;
}

/* ---------- 20. Underroller i tidslinjen ---------- */
.tl-roles { margin: 6px 0 12px; }
.tl-roles li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 4px 0;
  font-size: .96rem;
}
.tl-roles strong { color: var(--cyan-dark); font-weight: 600; }
.tl-roles span { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }

/* ---------- 21. Certifikater og priser ---------- */
.cert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.cert:hover { border-color: var(--green); transform: translateX(3px); }
.cert__icon {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
}
.cert__icon svg { width: 17px; height: 17px; }
.cert__name { font-weight: 600; color: var(--ink); font-size: .97rem; }

.award {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--cyan-soft), var(--green-soft));
  border: 1px solid #cdeef2;
}
.award__medal {
  width: 54px; height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #fff;
}
.award__medal svg { width: 26px; height: 26px; }
.award__title { display: block; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.award__sub { display: block; font-size: .92rem; color: var(--ink-3); }

/* ---------- 22. Projektbilleder der er logoer ---------- */
.project__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: linear-gradient(150deg, var(--surface), #fff 65%);
  border-bottom: 1px solid var(--line);
}
.project__media--logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .45s var(--ease);
}
.project:hover .project__media--logo img { transform: scale(1.04); }

/* =========================================================
   23. CV-side
   ========================================================= */
.cv-page { padding-bottom: 70px; }

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(40px, 6vw, 66px) 30px;
}
.cv-actions__title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .25em; }

/* Selve arket */
.cv-sheet {
  max-width: 940px;
  margin-inline: auto;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.cv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--cyan), var(--green)) 1;
}
.cv-name {
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  letter-spacing: -.035em;
  margin-bottom: .18em;
}
.cv-role { font-size: 1.05rem; font-weight: 600; color: var(--cyan-dark); margin: 0; }
.cv-head__photo {
  width: 108px; height: 108px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.cv-head__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 20px 0 6px;
  font-size: .92rem;
}
.cv-contact li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.cv-contact svg { width: 15px; height: 15px; flex: none; color: var(--cyan-dark); }
.cv-contact a { color: var(--ink-2); }
.cv-contact a:hover { color: var(--cyan-dark); }

.cv-section { margin-top: 32px; }
.cv-h {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.cv-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.cv-lead { font-size: 1rem; color: var(--ink-2); max-width: 78ch; }

.cv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 12px 46px;
}
@media (max-width: 820px) { .cv-grid { grid-template-columns: 1fr; } }

.cv-job { margin-bottom: 20px; }
.cv-job:last-child { margin-bottom: 0; }
.cv-job__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}
.cv-job__org { font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.cv-job__date {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.cv-job__role { font-size: .96rem; font-weight: 600; color: var(--cyan-dark); margin-top: 1px; }

.cv-list { margin-top: 8px; }
.cv-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 5px;
  font-size: .94rem;
  color: var(--ink-2);
}
.cv-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.cv-list--tight li { margin-bottom: 7px; }

.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tags span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: .8rem;
  color: var(--ink-2);
}

.cv-lang li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: .93rem;
  border-bottom: 1px solid var(--line);
}
.cv-lang li:last-child { border-bottom: 0; }
.cv-lang em { font-style: normal; color: var(--ink-3); font-size: .86rem; }

.cv-foot {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- Print: ét pænt A4-dokument ---------- */
@media print {
  @page { size: A4; margin: 11mm 13mm; }

  html, body {
    background: #fff !important;
    font-size: 9.6pt;
    line-height: 1.4;
  }
  .nav, .footer, .no-print, .skip-link, .blob { display: none !important; }

  .cv-page { padding: 0 !important; }
  .container { max-width: none; padding: 0 !important; }

  .cv-sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .cv-name { font-size: 21pt; }
  .cv-role { font-size: 10.5pt; }
  .cv-head { padding-bottom: 10px; }
  .cv-head__photo { width: 74px; height: 74px; }
  .cv-contact { gap: 4px 18px; margin: 10px 0 0; font-size: 8.4pt; }
  .cv-section { margin-top: 12px; }
  .cv-h { font-size: 8.4pt; margin-bottom: 7px; }
  .cv-lead { font-size: 9pt; max-width: none; }
  /* A4 er smallere end mobilbreakpointet — tving to spalter tilbage */
  .cv-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) !important;
    gap: 6px 24px;
  }
  .cv-head { flex-direction: row !important; }
  .cv-job { margin-bottom: 8px; }
  .cv-job__org { font-size: 10.5pt; }
  .cv-job__role { font-size: 9.4pt; }
  .cv-job__date { font-size: 8pt; }
  .cv-list li { font-size: 8.7pt; margin-bottom: 1px; padding-left: 14px; }
  .cv-tags span { font-size: 8pt; padding: 2px 7px; }
  .cv-lang li { font-size: 8.7pt; padding: 2px 0; }
  .cv-foot { margin-top: 12px; padding-top: 8px; font-size: 7.5pt; }

  /* Undgå at et job bliver delt over to sider */
  .cv-job, .cv-section > .cv-h { break-inside: avoid; page-break-inside: avoid; }
  .cv-h { break-after: avoid; page-break-after: avoid; }

  a { color: inherit !important; text-decoration: none; }

  /* Bevar farveaccenter i print */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* ---------- 24. Projektfelt uden billede ---------- */
.project__media--text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  background: linear-gradient(140deg, #0e2f36, #10151c 70%);
  border-bottom: 1px solid var(--line);
}
.project__media--text span {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  background: linear-gradient(100deg, #4fe0ef, #45d99b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .45s var(--ease);
}
.project:hover .project__media--text span { transform: scale(1.04); }
