/* ==========================================================================
   Mika H. Laybourn – CV
   Farver fra logoet: ink #0A0E18, guld #AD8D53, off-white #F0F3F5
   ========================================================================== */

@font-face {
  font-family: "Monarch Heritage";
  src: url("../fonts/MonarchHeritage-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0A0E18;
  --ink-2: #131927;
  --gold: #AD8D53;
  --gold-hover: #C2A26A;
  --gold-deep: #80632F;
  --mist: #F0F3F5;
  --paper: #FFFFFF;
  --slate: #5A6170;
  --slate-on-ink: #9AA1AD;
  --line: rgba(10, 14, 24, .12);
  --line-strong: rgba(10, 14, 24, .22);
  --line-on-ink: rgba(240, 243, 245, .14);

  --font-display: "Monarch Heritage", "Bodoni 72", Didot, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --nav-h: 56px;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --sec-pad: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- Knapper og links */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-line { background: transparent; color: var(--mist); border-color: rgba(240, 243, 245, .32); }
.btn-line:hover { border-color: var(--mist); }

.text-link {
  font-weight: 600; font-size: 15px; color: var(--gold-deep);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em;
}
.text-link:hover { color: var(--ink); }

/* ---------------------------------------------------------------- Navigation */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(10, 14, 24, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-on-ink);
  color: var(--mist);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.nav-brand img { width: 36px; height: auto; }
.nav-name { font-size: 14px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 13.5px; color: rgba(240, 243, 245, .72); text-decoration: none; padding: 6px 0; position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--mist); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); }
.nav-links-contact { display: none; }
.nav-cta { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.nav-cta:hover { background: var(--gold-hover); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 0; margin-right: -8px; }
.nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 18px; height: 1.5px; background: var(--mist); margin: 0 auto; transition: transform .3s var(--ease); }
.nav-toggle-bars { position: relative; transform: translateY(-3px); }
.nav-toggle-bars::before { content: ""; position: absolute; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-7px) rotate(-90deg); }

@media (max-width: 899px) {
  .nav-inner { gap: 12px; }
  .nav-toggle { display: block; order: 3; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100dvh - var(--nav-h));
    flex-direction: column; gap: 0; padding: 24px var(--gutter) 48px;
    background: var(--ink); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav-links li { border-bottom: 1px solid var(--line-on-ink); }
  .nav-links a { display: block; padding: 18px 0; font-family: var(--font-display); font-size: 34px; line-height: 1.1; letter-spacing: 0; color: var(--mist); }
  .nav-links a.is-active::after { display: none; }
  .nav-links-contact { display: block; }
}
@media (max-width: 420px) { .nav-cta { display: none; } }

/* ---------------------------------------------------------------- Hero */

.hero {
  background: var(--ink); color: var(--mist);
  padding: calc(var(--nav-h) + clamp(40px, 6.5vw, 104px)) 0 clamp(40px, 5vw, 72px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--mist);
  border: 1px solid var(--line-on-ink); padding: 8px 14px 8px 12px; margin-bottom: 32px;
}
.hero-status-dot { width: 8px; height: 8px; background: var(--gold); }
.hero-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4.25rem, 2.2rem + 8.4vw, 11.5rem);
  line-height: .86; letter-spacing: -.004em;
  color: var(--mist);
  margin-left: -.03em;
}
.hero-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-word > span { display: inline-block; }
.hero-role { margin-top: clamp(24px, 3vw, 36px); font-size: clamp(19px, 1rem + .6vw, 24px); font-weight: 500; letter-spacing: -.018em; color: var(--mist); }
.hero-tagline { margin-top: 12px; max-width: 34em; font-size: clamp(17px, 1rem + .2vw, 19px); color: var(--slate-on-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-actions:empty { display: none; }
.hero-visual { justify-self: end; width: 100%; max-width: 430px; }
.hero-monogram { width: 100%; opacity: .96; }
.hero-photo-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink-2); }
.hero-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: clamp(48px, 5.5vw, 88px); border-top: 1px solid var(--line-on-ink);
}
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 24px 24px 0 0; }
.fact dd { font-family: var(--font-display); font-size: clamp(44px, 2rem + 2vw, 64px); line-height: 1; color: var(--mist); font-variant-numeric: lining-nums; }
.fact dt { font-size: 14px; color: var(--slate-on-ink); }

/* Indgang: navnet stiger op, derefter resten. Kun når JavaScript er aktivt. */
.js .hero-word > span { transform: translateY(105%); }
.js .hero-role, .js .hero-tagline, .js .hero-actions, .js .hero-status, .js .hero-visual, .js .hero-facts { opacity: 0; }
.js.is-ready .hero-word > span { animation: cv-rise 1.1s var(--ease) forwards; }
.js.is-ready .hero-word:nth-child(2) > span { animation-delay: .08s; }
.js.is-ready .hero-word:nth-child(3) > span { animation-delay: .16s; }
.js.is-ready .hero-word:nth-child(4) > span { animation-delay: .24s; }
.js.is-ready .hero-word:nth-child(n+5) > span { animation-delay: .3s; }
.js.is-ready .hero-status { animation: cv-fade .8s ease forwards; }
.js.is-ready .hero-role, .js.is-ready .hero-tagline, .js.is-ready .hero-actions { animation: cv-fade .9s ease .45s forwards; }
.js.is-ready .hero-visual { animation: cv-fade-scale 1.4s var(--ease) .2s forwards; }
.js.is-ready .hero-facts { animation: cv-fade 1s ease .7s forwards; }
@keyframes cv-rise { to { transform: translateY(0); } }
@keyframes cv-fade { to { opacity: 1; } }
@keyframes cv-fade-scale { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-word > span { transform: none; }
  .js .hero-role, .js .hero-tagline, .js .hero-actions, .js .hero-status, .js .hero-visual, .js .hero-facts { opacity: 1; }
  .js.is-ready *, .js.is-ready *::before { animation: none !important; transition: none !important; }
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-visual { order: -1; justify-self: start; max-width: 140px; }
  .hero-visual.has-photo { max-width: 200px; }
  .hero-status { margin-bottom: 24px; }
}

/* ---------------------------------------------------------------- Sektioner */

.sec { padding-block: var(--sec-pad); background: var(--paper); }
.sec-alt { background: var(--mist); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.sec-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.sec-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 1.7rem + 2.1vw, 3.75rem);
  line-height: .95; letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.sec-intro { margin-top: 20px; max-width: 26em; color: var(--slate); font-size: 17px; }
.sec-body { min-width: 0; }
@media (max-width: 899px) {
  .sec-grid { grid-template-columns: 1fr; gap: 36px; }
  .sec-head { position: static; }
}

.prose p + p { margin-top: 1em; }
.prose { max-width: 40em; }
.prose-lead { font-size: clamp(20px, 1rem + .7vw, 26px); line-height: 1.45; letter-spacing: -.02em; max-width: 30em; }
.prose-lead p + p { margin-top: .8em; }

.empty-note { color: var(--slate); font-size: 19px; }

/* ---------------------------------------------------------------- Tidslinje (erfaring og uddannelse) */

.entry {
  display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 32px;
  padding-block: 40px 44px; border-top: 1px solid var(--line-strong);
}
.entry:first-child { padding-top: 22px; }
.entry:last-child { padding-bottom: 0; }
.entry-when { font-variant-numeric: tabular-nums; padding-top: 6px; }
.entry-period { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.entry-duration { margin-top: 2px; font-size: 14px; color: var(--slate); }
.entry-now { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gold-deep); }
.entry-now::before { content: ""; width: 7px; height: 7px; background: var(--gold); }
.entry-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem); line-height: 1; letter-spacing: 0;
  text-wrap: balance;
}
.timeline-compact .entry-title { font-size: clamp(1.75rem, 1.45rem + .8vw, 2.2rem); }
.entry-summary { margin-top: 20px; color: var(--ink); }

.org { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.org-logo { flex: none; width: 46px; height: 46px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; padding: 6px; }
.org-logo img { width: 100%; height: 100%; object-fit: contain; }
.org-name { font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
.org-name a { text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); }
.org-name a:hover { background-size: 100% 1px; }
.org-meta, .cert-meta, .project-meta { display: flex; flex-wrap: wrap; font-size: 14px; color: var(--slate); }
.org-meta span + span, .cert-meta span + span, .project-meta span + span { border-left: 1px solid var(--line-strong); margin-left: 10px; padding-left: 10px; }

.entry-lists { margin-top: 28px; display: grid; gap: 28px; }
.entry-lists.is-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.entry-list h4 { font-size: 13px; font-weight: 600; letter-spacing: -.005em; color: var(--ink); padding-top: 14px; margin-bottom: 14px; border-top: 1px solid var(--line); position: relative; }
.entry-list h4::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 1px; background: var(--ink); }
.entry-list.is-learn h4::before { background: var(--gold); height: 2px; top: -1.5px; }
.sq-list li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.5; }
.sq-list li + li { margin-top: 9px; }
.sq-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--slate); opacity: .55; }
.is-learn .sq-list li::before { background: var(--gold); opacity: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tags li { font-size: 13px; font-weight: 500; letter-spacing: -.005em; padding: 6px 10px; background: var(--mist); color: var(--ink); line-height: 1.3; }
.sec-alt .tags li { background: var(--paper); }

@media (max-width: 899px) {
  .entry { grid-template-columns: 1fr; gap: 10px; padding-block: 32px; }
  .entry-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-top: 0; }
  .entry-duration, .entry-now { margin-top: 0; }
}
@media (max-width: 640px) {
  .entry-lists.is-split { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------------------------------------------------------------- Felter (skills og programmer) */

.tiles { display: grid; gap: 12px; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--mist); padding: clamp(24px, 2.4vw, 32px); }
.sec-alt .tile { background: var(--paper); }
.tile-title { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; }
.tile-text { margin-top: 10px; color: var(--slate); font-size: 15px; }
.tile .tags { margin-top: 20px; }
.tile .tags li { background: var(--paper); }
.sec-alt .tile .tags li { background: var(--mist); }

.tile-sw { display: flex; flex-direction: column; gap: 22px; min-height: 168px; }
.sw-head { display: flex; align-items: center; gap: 14px; }
.sw-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.sw-icon img { width: 100%; height: 100%; object-fit: contain; }
.sw-name { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.sw-cat { font-size: 13px; color: var(--slate); margin-top: 2px; }
.sw-years { margin-top: auto; font-size: 13px; color: var(--slate); }
.tile-sw .level { margin-top: auto; }
.tile-sw .level + .sw-years { margin-top: -10px; }

.level { display: grid; gap: 8px; }
.level-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; max-width: 220px; }
.level-bar i { height: 4px; background: var(--line-strong); }
.level-bar i.on { background: var(--gold); }
.level-label { font-size: 13px; font-weight: 500; color: var(--slate); }

@media (max-width: 1100px) { .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles-2, .tiles-3 { grid-template-columns: 1fr; } .tile-sw { min-height: 0; } }

/* ---------------------------------------------------------------- Sprog */

.langs { border-bottom: 1px solid var(--line-strong); }
.lang { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 8px 24px; align-items: center; padding-block: 22px; border-top: 1px solid var(--line-strong); }
.lang-name { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; }
.lang-note { grid-column: 1 / -1; color: var(--slate); font-size: 15px; }
@media (max-width: 560px) { .lang { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Certifikater */

.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.cert { display: flex; gap: 18px; padding-block: 26px 30px; border-top: 1px solid var(--line-strong); }
.cert-logo { flex: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--paper); padding: 6px; display: grid; place-items: center; }
.cert-logo img { width: 100%; height: 100%; object-fit: contain; }
.cert-name { font-size: 18px; font-weight: 600; letter-spacing: -.018em; line-height: 1.3; }
.cert-issuer { margin-top: 2px; font-size: 15px; }
.cert-meta { margin-top: 10px; }
.cert-id { margin-top: 4px; font-size: 13px; color: var(--slate); font-variant-numeric: tabular-nums; word-break: break-all; }
.cert-link { margin-top: 14px; }
@media (max-width: 700px) { .certs { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Samarbejder (logovæg) */

.logos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong);
}
.logo-cell { border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.logo-cell > a, .logo-cell > div {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3;
  padding: 24px 24px 40px; text-decoration: none; color: var(--ink);
}
.logo-mark { width: 100%; height: 100%; display: grid; place-items: center; }
.logo-img { max-width: 78%; max-height: 64px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logo-cell > a:hover .logo-img, .logo-cell > a:focus-visible .logo-img { filter: none; opacity: 1; }
.logo-word { font-family: var(--font-display); font-size: clamp(21px, .9rem + .8vw, 28px); line-height: 1.05; text-align: center; overflow-wrap: anywhere; }
.logo-caption { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--slate); line-height: 1.3; }
.logo-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-rel { flex: none; }
.logo-cell > a .logo-name { transition: color .2s; }
.logo-cell > a:hover .logo-name { color: var(--ink); }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logo-rel { display: none; } }

/* ---------------------------------------------------------------- Projekter */

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
.project-media { aspect-ratio: 4 / 3; background: var(--mist); overflow: hidden; margin-bottom: 20px; }
.sec-alt .project-media { background: var(--paper); }
.project-img { width: 100%; height: 100%; object-fit: cover; }
.project-title { margin-top: 6px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 1.5rem + .6vw, 2.2rem); line-height: 1; }
.project-text { margin-top: 12px; font-size: 16px; }
.project .tags { margin-top: 16px; }
.project-link { margin-top: 16px; }
.projects li:only-child { grid-column: 1 / -1; }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Udtalelser */

.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quotes.is-single { grid-template-columns: 1fr; }
.quote figure { height: 100%; display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 3vw, 40px); background: var(--mist); }
.sec-alt .quote figure { background: var(--paper); }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.6rem, 1.35rem + .6vw, 2rem); line-height: 1.12; letter-spacing: 0; }
.quote blockquote::before { content: ""; display: block; width: 32px; height: 2px; background: var(--gold); margin-bottom: 28px; }
.quote blockquote p + p { margin-top: .6em; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote-photo { flex: none; width: 44px; height: 44px; overflow: hidden; }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote-who { display: grid; }
.quote-name { font-size: 15px; font-weight: 600; letter-spacing: -.012em; }
.quote-role { font-size: 14px; color: var(--slate); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Kontakt og footer */

.contact { background: var(--ink); color: var(--mist); padding-block: clamp(96px, 12vw, 176px) clamp(72px, 8vw, 120px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 96px); align-items: end; }
.contact-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.5rem, 1.8rem + 6.4vw, 8.75rem); line-height: .88; letter-spacing: 0; text-wrap: balance; }
.contact-text { margin-top: 28px; max-width: 30em; font-size: 19px; color: var(--slate-on-ink); }
.contact-text p + p { margin-top: .8em; }
.contact-email {
  display: inline-block; margin-top: 40px;
  font-size: clamp(20px, 1rem + 1.2vw, 30px); font-weight: 500; letter-spacing: -.025em;
  color: var(--mist); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .28em;
  word-break: break-word; transition: color .2s;
}
.contact-email:hover { color: var(--gold-hover); }
.contact-list { border-bottom: 1px solid var(--line-on-ink); }
.contact-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid var(--line-on-ink); align-items: baseline; }
.contact-row dt { font-size: 13px; color: var(--slate-on-ink); }
.contact-row dd { font-size: 16px; word-break: break-word; }
.contact-row a { text-decoration: none; }
.contact-row a:hover { color: var(--gold-hover); }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }

.footer { background: var(--ink); color: var(--slate-on-ink); border-top: 1px solid var(--line-on-ink); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 28px; font-size: 13px; }
.footer-logo { width: 34px; }
.footer-copy { margin-right: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------------------------------------------------------------- Print / Gem som PDF */

@media print {
  @page { margin: 14mm 14mm 16mm; }
  :root { --sec-pad: 0; }
  html { scroll-behavior: auto; }
  body { font-size: 9.5pt; line-height: 1.45; background: #fff; color: var(--ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nav, .skip, .hero-actions, .hero-monogram, .footer-logo, .text-link { display: none !important; }
  .js .hero-word > span { transform: none !important; animation: none !important; }
  .js .hero-role, .js .hero-tagline, .js .hero-status, .js .hero-visual, .js .hero-facts { opacity: 1 !important; animation: none !important; }
  .wrap { max-width: none; padding: 0; }
  .hero { background: #fff; color: var(--ink); padding: 0 0 8mm; border-bottom: 1px solid var(--ink); }
  .hero-grid { grid-template-columns: 1fr 34mm; gap: 8mm; align-items: start; }
  .hero-name { color: var(--ink); font-size: 40pt; }
  .hero-word { overflow: visible; }
  .hero-role { color: var(--ink); font-size: 13pt; margin-top: 4mm; }
  .hero-tagline { color: var(--slate); font-size: 10pt; margin-top: 2mm; }
  .hero-status { color: var(--ink); border-color: var(--line-strong); margin-bottom: 4mm; padding: 1.5mm 3mm; font-size: 8.5pt; }
  .hero-visual, .hero-visual.has-photo { order: 0; justify-self: end; max-width: 34mm; }
  .hero-facts { margin-top: 6mm; border-color: var(--line-strong); }
  .fact { padding-top: 3mm; }
  .fact dd { color: var(--ink); font-size: 20pt; }
  .fact dt { color: var(--slate); font-size: 8pt; }
  .sec, .sec-alt { background: #fff; padding: 7mm 0 0; }
  .sec-grid { grid-template-columns: 38mm minmax(0, 1fr); gap: 7mm; }
  .sec-head { position: static; }
  .sec-title { font-size: 15pt; line-height: 1; }
  .sec-intro { font-size: 8.5pt; margin-top: 2mm; }
  .prose-lead { font-size: 11pt; }
  .entry { grid-template-columns: 28mm minmax(0, 1fr); gap: 5mm; padding: 4mm 0 5mm; break-inside: avoid; }
  .entry:first-child { padding-top: 2mm; }
  .entry-title { font-size: 15pt; }
  .entry-when { display: block; }
  .entry-period { font-size: 8.5pt; }
  .entry-duration, .entry-now { font-size: 8pt; margin-top: 1mm; }
  .entry-summary, .entry-lists { margin-top: 3mm; }
  .entry-lists.is-split { gap: 6mm; }
  .sq-list li { font-size: 9pt; }
  .sq-list li + li { margin-top: 1mm; }
  .org { margin-top: 2mm; }
  .org-logo { width: 9mm; height: 9mm; padding: 1mm; }
  .tags { margin-top: 3mm; }
  .tags li, .tile .tags li { background: var(--mist); font-size: 7.5pt; padding: .8mm 2mm; }
  .tile, .sec-alt .tile, .quote figure, .sec-alt .quote figure { background: #fff; border: 1px solid var(--line); padding: 4mm; break-inside: avoid; }
  .tile-title { font-size: 13pt; }
  .tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .tile-sw { min-height: 0; gap: 3mm; }
  .projects { gap: 6mm; }
  .project { break-inside: avoid; }
  .project-media { display: none; }
  .project-title { font-size: 14pt; }
  .lang { padding-block: 3mm; }
  .lang-name { font-size: 14pt; }
  .cert { padding-block: 3mm; break-inside: avoid; }
  .logos { grid-template-columns: repeat(5, 1fr); }
  .logo-cell > a, .logo-cell > div { padding: 3mm 3mm 6mm; }
  .logo-img { filter: none; opacity: 1; max-height: 10mm; }
  .logo-word { font-size: 10pt; }
  .logo-caption { font-size: 6.5pt; left: 2mm; right: 2mm; bottom: 1.5mm; }
  .quote blockquote { font-size: 12pt; }
  .contact { background: #fff; color: var(--ink); padding: 8mm 0 0; break-inside: avoid; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 8mm; }
  .contact-title { font-size: 22pt; }
  .contact-text { color: var(--slate); font-size: 9pt; margin-top: 3mm; }
  .contact-email { color: var(--ink); font-size: 12pt; margin-top: 4mm; }
  .contact-list, .contact-row { border-color: var(--line-strong); }
  .contact-row { padding-block: 1.5mm; }
  .contact-row dt { color: var(--slate); font-size: 8pt; }
  .contact-row dd { font-size: 9pt; }
  .footer { background: #fff; color: var(--slate); border-color: var(--line); }
  .footer-inner { padding-block: 4mm 0; font-size: 8pt; }
  a { text-decoration: none !important; }
}
