/* ---------- Skrifttyper (ligger lokalt – ingen Google-kald, GDPR-venligt) ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

/* ---------- Farver og mål ---------- */
:root {
  --ink: #0F2238;      /* natblå: tekst og navneplade */
  --ice: #F2F6F8;      /* is: baggrund */
  --white: #FFFFFF;
  --blue: #1F5FA8;     /* blå linje: links og tidslinje */
  --red: #D2232A;      /* målrød: én accent */
  --slate: #56677A;    /* sekundær tekst */
  --rule: #D5DFE6;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;

  --wrap: 68rem;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.lede { color: var(--slate); max-width: 38em; margin-top: .6rem; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--gap);
  background: rgba(242, 246, 248, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar__name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.topbar__nav { display: flex; gap: clamp(.9rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.topbar__nav a { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.topbar__nav a:hover { color: var(--blue); }

/* ---------- Hero: portræt + TV-navneplade ---------- */
.hero { position: relative; background: var(--ink); }
.hero__img {
  width: 100%;
  height: min(78vh, 46rem);
  object-fit: cover;
  object-position: 62% 30%;
}
.super {
  position: absolute;
  left: var(--gap);
  bottom: clamp(1.5rem, 6vh, 3.5rem);
  max-width: calc(100% - 2 * var(--gap));
}
.super p { margin: 0; font-family: var(--display); line-height: 1; }
.super__name {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5rem);
  padding: .14em .3em .1em .3em;
  border-left: .16em solid var(--red);
}
.super__title {
  display: table;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  padding: .38em .75em .34em calc(.3em + .16em * 3);
}

@media (prefers-reduced-motion: no-preference) {
  .super__name, .super__title { animation: wipe .55s cubic-bezier(.2, .7, .2, 1) both; }
  .super__name  { animation-delay: .25s; }
  .super__title { animation-delay: .5s; }
  @keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ---------- Om mig ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem var(--gap);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.intro__headline {
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.01em;
}
.intro__text { max-width: 34em; }
.intro__aside { font-style: italic; color: var(--slate); }
.facts {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  list-style: none; margin: 1.5rem 0 0; padding: 1.5rem 0 0;
  border-top: 2px solid var(--ink);
  color: var(--slate); font-size: 1rem; line-height: 1.4;
}
.facts strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--ink); line-height: 1.1; }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--white); padding-block: clamp(3.5rem, 8vw, 6rem); border-block: 1px solid var(--rule); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 2.25rem; }
.filter {
  font: 600 1.05rem/1 var(--display);
  padding: .6rem 1rem .55rem;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 0;
  cursor: pointer;
}
.filter:hover { background: var(--ice); }
.filter.is-active { background: var(--ink); color: var(--white); }

.works { list-style: none; margin: 0; padding: 0; }
.work {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 1.75rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.work:last-child { border-bottom: 1px solid var(--rule); }
.work[hidden] { display: none; }
.work__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__media--tile { display: flex; align-items: flex-end; padding: .8rem 1rem; }
.work__platform { font: 700 1.9rem/1 var(--display); color: var(--white); }
.tile--video   { background: var(--ink); }
.tile--podcast { background: #24466B; }
.tile--artikel { background: var(--blue); }
.tile--some    { background: #33475C; }
.work__media--tile { box-shadow: inset .3rem 0 0 var(--red); }

.work__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-bottom: .35rem; font-size: .95rem; color: var(--slate); }
.work__where { font-style: italic; }
.tag { font: 600 .95rem/1 var(--display); padding: .22rem .45rem .2rem; background: var(--ice); color: var(--ink); }
.work__title { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; margin-bottom: .5rem; }
.work__text { max-width: 36em; margin-bottom: .75rem; }
.work__link { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }

/* ---------- Erfaring: tidslinje ---------- */
.experience { padding-block: clamp(3.5rem, 8vw, 6rem); }
.timeline { list-style: none; margin: 2.25rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11rem; top: .4rem; bottom: .4rem; width: 3px; background: var(--blue); }
.timeline li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  column-gap: 2.25rem;
  padding-bottom: 1.75rem;
  position: relative;
}
.timeline li::before {
  content: ""; position: absolute; left: calc(11rem - 5px); top: .45rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ice); border: 3px solid var(--blue);
}
.timeline li:first-child::before { background: var(--red); border-color: var(--red); }
.timeline__when { grid-row: 1 / span 2; margin: 0; padding-right: 1.5rem; font: 600 1.05rem/1.3 var(--display); color: var(--slate); text-align: right; }
.timeline h3 { grid-column: 2; font-size: 1.6rem; font-weight: 700; margin-bottom: .3rem; }
.timeline .org { font-weight: 500; color: var(--blue); }
.timeline .org::before { content: "hos "; color: var(--slate); }
.timeline li > p:not(.timeline__when) { grid-column: 2; max-width: 38em; margin: 0; }

/* ---------- Uddannelse / kompetencer / personligt ---------- */
.more {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
  padding-block: 0 clamp(3.5rem, 8vw, 6rem);
}
.more h2 { font-size: 1.9rem; padding-bottom: .6rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.edu { margin: 0; }
.edu dt { font-weight: 600; }
.edu dd { margin: 0 0 .8rem; color: var(--slate); font-size: 1rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: .45rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.45; }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: var(--white); padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.contact .lede { color: #B9C6D3; }
.contact__mail {
  display: inline-block; margin-top: 1.5rem;
  font: 700 clamp(2rem, 6.5vw, 4.25rem)/1.05 var(--display);
  color: var(--white); text-decoration-color: var(--red); text-decoration-thickness: 4px; text-underline-offset: .14em;
  word-break: break-word;
}
.contact__mail:hover { color: #DCE6EF; }
.contact__links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.contact__links a { color: var(--white); font: 600 1.25rem/1 var(--display); }

.footer { padding-block: 1.5rem; font-size: .9rem; color: var(--slate); }
.footer p { margin: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 52rem) {
  .intro { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .more { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; gap: 1rem; }
  .work__media { max-width: 30rem; }
}
@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .topbar { flex-direction: column; align-items: flex-start; gap: .35rem; padding-block: .6rem; }
  .topbar__nav a { font-size: 1.05rem; }
  html { scroll-padding-top: 6rem; }
  .hero__img { height: 62vh; object-position: 72% 25%; }
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 2rem; }
  .timeline li::before { left: 0; }
  .timeline__when { grid-row: auto; text-align: left; padding: 0; margin-bottom: .2rem; }
  .timeline h3, .timeline li > p:not(.timeline__when) { grid-column: 1; }
}
