:root {
  --bg:#100e0f;
  --panel:#191617;
  --text:#f0e9df;
  --muted:#b7aea8;
  --accent:#ff765e;
  --line:#3a3233;
  --radius:20px
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:110px
}
body {
  margin:0;
  background:radial-gradient(ellipse at 80% 0%,#49231f66,transparent 35%),var(--bg);
  color:var(--text);
  font-family:'Space Grotesk',system-ui,sans-serif;
  font-size:15px;
  line-height:1.7
}
a {
  color:inherit
}
button {
  font:inherit;
  cursor:pointer
}
a,button {
  -webkit-tap-highlight-color:transparent
}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:5px
}
h1,h2,h3,p {
  margin-top:0
}
h1,h2,h3 {
  line-height:1.12;
  letter-spacing:-.055em
}
h1 {
  font-size:clamp(44px,5.5vw,78px);
  font-weight:500;
  margin-bottom:28px
}
h2 {
  font-size:clamp(32px,4vw,52px);
  font-weight:500;
  margin-bottom:22px
}
h3 {
  font-size:22px;
  font-weight:500;
  letter-spacing:-.035em;
  margin-bottom:14px
}
p {
  color:var(--muted);
  margin-bottom:18px
}
em {
  font-style:normal;
  color:var(--accent)
}
.container {
  width:min(1180px,calc(100% - 64px));
  margin-inline:auto
}
.section {
  padding-block:74px;
  border-top:1px solid var(--line)
}
.eyebrow {
  font-size:11px;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:22px
}
.topbar {
  position:fixed;
  inset:18px 24px auto;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:12px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#141112ed;
  backdrop-filter:blur(20px)
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:17px;
  font-weight:600;
  text-decoration:none;
  line-height:1.3
}
.brand small {
  display:block;
  font-size:10px;
  font-weight:400;
  letter-spacing:.11em;
  color:var(--muted);
  text-transform:uppercase;
  margin-top:4px
}
.brand-mark {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid #803c31;
  border-radius:12px;
  color:var(--accent);
  background:#3a211d
}
.topbar nav {
  display:flex;
  gap:4px
}
.topbar nav a {
  padding:9px 13px;
  border-radius:9px;
  font-size:12px;
  color:var(--muted);
  text-decoration:none;
  white-space:nowrap
}
.topbar nav a:hover,.topbar nav a[aria-current] {
  background:#2a2425;
  color:var(--text)
}
.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:24px;
  border:1px solid var(--text);
  border-radius:10px;
  background:var(--text);
  color:#1d1616;
  min-height:48px;
  padding:12px 20px;
  font-weight:500;
  font-size:13px;
  text-decoration:none;
  transition:background .2s,transform .2s
}
.button:hover {
  background:#fff5e8;
  transform:translateY(-2px)
}
.button-small {
  min-height:40px;
  padding:9px 16px
}
.button-outline {
  background:transparent;
  color:var(--text);
  border:1px solid #615354;
  border-radius:10px
}
.button-outline:hover {
  background:#2e2526;
  color:var(--text)
}
.nav-toggle {
  display:none
}
.skip-link {
  position:fixed;
  left:20px;
  top:-100px;
  z-index:100;
  background:var(--text);
  color:var(--bg);
  padding:12px;
  border-radius:8px
}
.skip-link:focus {
  top:20px
}
main {
  padding-top:122px
}
.hero {
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:65px;
  align-items:center;
  padding-top:48px;
  padding-bottom:88px
}
.hero-lead {
  font-size:17px;
  max-width:52ch;
  line-height:1.8
}
.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  margin-right:10px;
  vertical-align:middle
}
.hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px
}

.portrait {
  position:relative;
  height:470px;
  border:1px solid #5c3734;
  border-radius:24px;
  overflow:hidden;
  background:#311e1e
}
.portrait img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 40%;
  filter:saturate(.6)
}
.portrait:after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#160e10e6,transparent 65%);
  pointer-events:none
}
.portrait-caption {
  position:absolute;
  z-index:1;
  bottom:25px;
  left:28px;
  right:28px
}
.portrait-caption>span {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#d5c6bb
}
.portrait-caption strong {
  display:flex;
  justify-content:space-between;
  font-size:32px;
  font-weight:500
}
.portrait-code {
  position:absolute;
  z-index:1;
  top:22px;
  left:22px;
  background:#160e10bf;
  border:1px solid #ffffff26;
  padding:12px 16px;
  border-radius:10px;
  color:#e4c9ba;
  font:10px/1.8 monospace
}
.section-heading {
  display:flex;
  justify-content:space-between;
  gap:40px;
  align-items:flex-end;
  margin-bottom:34px
}
.section-heading h2 {
  margin:0
}
.section-heading>p {
  max-width:340px;
  font-size:14px;
  margin:0
}
.project-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px
}
.project-card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--panel)
}
.project-preview {
  height:235px;
  position:relative;
  overflow:hidden;
  background:#312326;
  padding:20px
}
.preview-portfolio {
  background:radial-gradient(at 100% 100%,#a8422b,transparent 70%),#291d21
}
.preview-dashboard {
  background:radial-gradient(at 80% 80%,#385f74,transparent 80%),#17242d
}
.preview-landing {
  background:radial-gradient(at 70% 100%,#61538b,transparent 80%),#241e32
}
.window-bar {
  display:flex;
  gap:4px;
  align-items:center;
  padding:8px;
  border-bottom:1px solid #ffffff1f
}
.window-bar i {
  width:5px;
  height:5px;
  background:#e7cec180;
  border-radius:50%
}
.window-bar span {
  font:9px monospace;
  margin-left:auto;
  color:#dfd1c4
}
.mock-content {
  padding:18px 12px;
  color:#f3e8da
}
.mock-label {
  font:8px monospace;
  color:#d7bdb1;
  display:block;
  margin-bottom:12px
}
.mock-content strong {
  font-size:26px;
  font-weight:500;
  letter-spacing:-.05em
}
.mock-lines {
  margin-top:14px;
  display:grid;
  gap:5px
}
.mock-lines i {
  height:3px;
  width:80%;
  background:#ebd9ca30
}
.mock-lines i:last-child {
  width:45%
}
.mock-tiles {
  display:flex;
  gap:8px;
  margin-top:16px
}
.mock-tiles i {
  height:30px;
  flex:1;
  border:1px solid #edd5ca30;
  border-radius:5px;
  background:#ffffff09
}
.preview-note {
  position:absolute;
  bottom:8px;
  left:20px;
  font-size:8px;
  color:#e8d5ca
}
.project-copy {
  padding:24px
}
.project-meta {
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:15px
}
.project-copy p {
  font-size:12px;
  line-height:1.8;
  min-height:65px
}
.tags {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-block:18px
}
.tags span {
  font-size:10px;
  border:1px solid #514143;
  border-radius:6px;
  padding:4px 8px;
  color:#d6c6c1
}
.project-actions {
  border-top:1px solid var(--line);
  padding-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center
}
.text-link {
  font-size:12px;
  font-weight:500;
  text-decoration:none;
  border:0;
  background:none;
  padding:0;
  color:var(--text)
}
.text-link:hover {
  color:var(--accent)
}
.project-actions .text-link {
  flex:1 0 100%;
  display:flex;
  justify-content:space-between
}
.pending-link {
  font-size:11px;
  color:#afa19b;
  display:inline-block
}
.section-note,.small-note {
  font-size:11px;
  color:#aa9d96
}
.section-note {
  margin:22px 0 0
}
.panel {
  padding:30px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:var(--panel)
}
.skills-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}
.skill-card .card-number {
  display:block;
  color:var(--accent);
  font:24px monospace;
  margin-bottom:25px
}
.skill-card p {
  font-size:13px
}
.clean-list {
  list-style:none;
  padding:0;
  margin-bottom:18px;
  color:#d5c7bf;
  font-size:12px
}
.clean-list li {
  padding-block:5px
}
.clean-list li:before {
  content:'↗';
  color:var(--accent);
  margin-right:12px
}
.profile {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:70px;
  align-items:center
}
.profile h2 {
  font-size:clamp(30px,3vw,43px)
}
.body-large {
  font-size:17px
}
.profile-facts {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:30px
}
.profile-facts span {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-bottom:5px
}
.profile-facts strong {
  font-size:12px;
  font-weight:400
}
.process ol {
  list-style:none;
  margin:0;
  padding:0
}
.process li {
  display:flex;
  gap:22px;
  padding:24px 0;
  border-top:1px solid var(--line)
}
.process li>span {
  font:12px monospace;
  color:var(--accent);
  padding-top:4px
}
.process li:last-child {
  padding-bottom:0
}
.process h3 {
  font-size:19px
}
.process p {
  font-size:12px;
  margin-bottom:0
}
.background-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:20px
}
.timeline article+article {
  border-top:1px solid var(--line);
  margin-top:28px;
  padding-top:28px
}
.timeline p,.background-side p {
  font-size:13px
}
.background-side {
  display:grid;
  gap:20px
}
.background-side .small-note,.timeline .small-note {
  font-size:11px
}
.cv-panel {
  display:flex;
  gap:20px;
  justify-content:space-between;
  align-items:center
}
.cv-panel p:last-child {
  margin-bottom:0
}
.cv-panel>.pending-link {
  white-space:nowrap;
  border:1px dashed #655054;
  padding:12px;
  border-radius:10px
}
.contact-panel {
  padding:55px;
  border:1px solid #62413a;
  border-radius:24px;
  background:radial-gradient(at 0% 100%,#622b2060,transparent 70%),#1f1718;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:70px;
  align-items:center
}
.contact-panel p {
  max-width:420px
}
.contact-links>div {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:20px 0;
  border-bottom:1px solid #61443e
}
.contact-links>div>span:first-child {
  font-size:11px;
  color:var(--muted)
}
.contact-links a {
  font-size:12px;
  color:var(--text);
  text-decoration:none
}
.contact-links a:hover {
  color:var(--accent)
}
.footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding-block:25px 40px;
  font-size:10px;
  border-top:1px solid var(--line)
}
.footer p {
  margin:0
}
.footer .brand {
  font-size:13px
}
.footer>a:last-child {
  text-decoration:none
}
dialog {
  background:#201a1b;
  color:var(--text);
  border:1px solid #6d4a44;
  border-radius:22px;
  width:min(780px,calc(100% - 32px));
  max-height:85dvh;
  padding:34px;
  box-shadow:0 30px 100px #0009
}
dialog::backdrop {
  background:#080607cc;
  backdrop-filter:blur(8px)
}
.dialog-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px
}
.dialog-top p {
  margin:0
}
.dialog-close {
  padding:8px 16px;
  min-height:44px
}
dialog h2 {
  font-size:38px
}
.dialog-details {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.dialog-details article {
  padding:20px;
  border:1px solid var(--line);
  border-radius:12px
}
.dialog-details h3 {
  font-size:16px
}
.dialog-details p {
  font-size:12px;
  margin:0
}
.dialog-details .wide {
  grid-column:1/-1
}

@media(min-width:1500px) {
  .topbar {
  left:calc((100% - 1320px)/2);
  right:calc((100% - 1320px)/2)
}

}

@media(max-width:1000px) {
  .hero {
  gap:30px
}
.portrait {
  height:420px
}
.project-grid {
  gap:12px
}
.project-copy {
  padding:18px
}
.skills-grid {
  gap:12px
}
.panel {
  padding:24px
}
.profile {
  gap:30px
}
.topbar nav a {
  padding-inline:9px;
  font-size:11px
}
.contact-panel {
  gap:30px;
  padding:35px
}
.cv-panel {
  flex-direction:column;
  align-items:flex-start
}

}

@media(max-width:760px) {
  .container {
  width:calc(100% - 36px)
}
.topbar {
  inset:10px 10px auto;
  padding:10px 12px;
  gap:12px;
  flex-wrap:wrap
}
.brand {
  margin-right:auto;
  font-size:15px
}
.brand-mark {
  width:36px;
  height:36px
}
.nav-toggle {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:8px;
  border:0;
  background:none;
  color:var(--text);
  font-size:12px
}
.topbar .button-small {
  font-size:11px;
  padding:8px 12px
}
.topbar nav {
  display:none;
  order:4;
  width:100%;
  padding-top:10px;
  border-top:1px solid var(--line)
}
.topbar.is-menu-open nav {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px
}
.topbar nav a {
  min-height:44px;
  font-size:13px;
  padding:12px
}
.hero {
  grid-template-columns:1fr;
  padding-top:25px;
  padding-bottom:45px;
  gap:30px
}
.hero h1 {
  font-size:clamp(40px,8vw,58px)
}
.hero-lead {
  font-size:15px
}

.hero-actions .button {
  font-size:12px;
  padding:12px 16px;
  gap:12px
}
.portrait {
  height:370px
}
.section {
  padding-block:45px
}
.section-heading {
  display:block;
  margin-bottom:26px
}
.section-heading>p {
  margin-top:20px;
  max-width:100%
}
.project-grid,.skills-grid,.profile,.background-grid,.contact-panel {
  grid-template-columns:1fr
}
.project-grid,.skills-grid {
  gap:20px
}
.project-preview {
  height:260px
}
.project-copy {
  padding:24px
}
.project-copy p {
  min-height:auto;
  font-size:14px
}
.project-meta {
  font-size:10px
}
.project-actions .text-link {
  flex-basis:auto;
  flex-grow:1;
  gap:12px
}
.profile {
  gap:28px
}
.profile-facts {
  gap:18px
}
.contact-panel {
  padding:28px;
  gap:22px
}
.contact-panel h2 {
  font-size:38px
}
.contact-links>div {
  gap:12px
}
.cv-panel {
  flex-direction:row
}
.footer {
  flex-wrap:wrap;
  gap:15px
}
.footer p {
  order:3;
  width:100%
}
.dialog-details {
  grid-template-columns:1fr
}
dialog {
  padding:24px
}
.dialog-details .wide {
  grid-column:auto
}
dialog h2 {
  font-size:30px
}
main {
  padding-top:100px
}

}

@media(prefers-reduced-motion:reduce) {
  html {
  scroll-behavior:auto
}
*,*:before,*:after {
  animation:none!important;
  transition:none!important
}

}

.brand-mark {
  white-space:nowrap;
  font-size:14px;
  flex-shrink:0
}
.project-screenshot {
  padding:0
}
.project-screenshot img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top
}


/* Atmosfære bag indholdet: glød, teknisk gitter og orbitallinjer. */
body {
  position: relative;
  isolation: isolate;
  background: #100e0f;
}
.ambient-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 96% 12%, rgba(196, 72, 44, .27), transparent 49%),
    radial-gradient(ellipse at 0% 66%, rgba(108, 61, 143, .17), transparent 44%),
    radial-gradient(ellipse at 64% 108%, rgba(183, 69, 47, .17), transparent 48%),
    linear-gradient(135deg, #171113 0%, #100e11 50%, #1b1314 100%);
}
.ambient-background::before {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  right: -37vw;
  top: -27vw;
  border-radius: 50%;
  border: 1px solid rgba(255, 135, 105, .13);
  box-shadow: 0 0 0 70px rgba(255, 135, 105, .025),
    0 0 0 71px rgba(255, 135, 105, .06),
    0 0 0 155px rgba(255, 135, 105, .018),
    0 0 0 156px rgba(255, 135, 105, .035);
}
.ambient-background::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' opacity='.18' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.ambient-background__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(239, 210, 195, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 210, 195, .045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(110deg, transparent 15%, #000 80%);
}
.ambient-background__orbit {
  position: absolute;
  width: 65vw;
  height: 65vw;
  left: -48vw;
  top: 38%;
  border: 1px solid rgba(190, 150, 220, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(190, 150, 220, .025),
    0 0 0 91px rgba(190, 150, 220, .055);
}
.ambient-background__cross {
  position: absolute;
  color: rgba(255, 151, 122, .35);
  font: 18px monospace;
}
.ambient-background__cross--one { right: 8%; top: 38%; }
.ambient-background__cross--two { left: 3%; bottom: 17%; }
@media (max-width: 760px) {
  .ambient-background__grid { background-size: 64px 64px; opacity: .65; }
  .ambient-background__cross { display: none; }
  .ambient-background::after { opacity: .12; }
}

/* Den gennemgående logokarrusel bevares i kompetencesektionen. */
.logo-carousel { margin-bottom: 52px; }
.logo-carousel__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.logo-carousel__header .eyebrow { margin: 0; }
.logo-carousel__toggle { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; min-height: 40px; background: var(--panel); color: var(--muted); font-size: 11px; }
.logo-carousel__viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.logo-carousel__track { display: flex; width: max-content; animation: logo-scroll 30s linear infinite; }
.logo-carousel__group { display: flex; gap: 16px; padding-right: 16px; }
.logo-carousel__item { display: flex; align-items: center; gap: 14px; width: 175px; min-height: 86px; padding: 18px; border: 1px solid var(--line); background: rgba(25,22,23,.9); border-radius: 16px; }
.logo-carousel__item img { width: 42px; height: 42px; object-fit: contain; }
.logo-carousel__item span { font-size: 12px; color: var(--text); }
.logo-carousel:hover .logo-carousel__track, .logo-carousel:focus-within .logo-carousel__track, .logo-carousel.is-paused .logo-carousel__track { animation-play-state: paused; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-carousel__track { animation: none; width: 100%; }
  .logo-carousel__group { flex-wrap: wrap; padding: 0; justify-content: center; width: 100%; }
  .logo-carousel__group[aria-hidden] { display: none; }
  .logo-carousel__toggle { display: none; }
  .logo-carousel__viewport { mask-image: none; }
  .logo-carousel__item { width: 160px; }
}

/* Fleksible layouts fra små telefoner til brede skærme. */
main, section, article, .hero-copy, .project-copy, .background-side,
.contact-links, .profile > div, .section-heading > div {
  min-width: 0;
}
img { max-width: 100%; }
h1, h2, h3, p, .contact-links a, .profile-facts strong {
  overflow-wrap: anywhere;
}
.brand, .topbar > .button { flex-shrink: 0; }
.project-grid, .skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-actions { align-items: center; }
.contact-links > div { flex-wrap: wrap; }
.contact-links a, .contact-links .pending-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.logo-carousel__viewport { max-width: 100%; }
.logo-carousel__toggle { flex-shrink: 0; }
.dialog-details > article { min-width: 0; }
dialog { overscroll-behavior: contain; }
@media (min-width: 761px) and (max-width: 1100px) {
  .project-grid, .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-preview { height: 240px; }
  .project-copy p { min-height: auto; }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
  .hero h1 { font-size: clamp(40px, 5.2vw, 58px); }
  .portrait { height: 420px; }
  .profile, .background-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-panel { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 12px; }
  .brand { margin-right: auto; }
  .nav-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px; border: 0; background: none; color: var(--text); font-size: 13px; }
  .topbar nav { display: none; order: 4; width: 100%; padding-top: 10px; border-top: 1px solid var(--line); }
  .topbar.is-menu-open nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .topbar nav a { white-space: normal; min-height: 44px; padding: 12px; font-size: 13px; }
}
@media (max-width: 760px) {
  .project-grid, .skills-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(36px, 8.5vw, 58px); }
  .portrait { height: clamp(300px, 85vw, 440px); }
  .hero-lead, .project-copy p, .skill-card p, .timeline p, .background-side p { font-size: 14px; }
  .text-link, .pending-link { font-size: 12px; }
  .project-actions .text-link { min-height: 44px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .button { width: 100%; gap: 8px; padding: 12px 10px; }
  .contact-links > div { display: grid; gap: 8px; padding-block: 18px; }
  .cv-panel { flex-wrap: wrap; }
  .cv-panel > .pending-link { white-space: normal; }
  .logo-carousel { margin-bottom: 36px; }
  .logo-carousel__header { align-items: flex-start; }
  .logo-carousel__header .eyebrow { font-size: 10px; }
  .logo-carousel__item { width: 155px; min-height: 78px; padding: 14px; gap: 10px; }
  .logo-carousel__item img { width: 38px; height: 38px; }
  dialog { max-height: calc(100dvh - 24px); padding: 22px; }
  .dialog-top { align-items: flex-start; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 28px); }
  .topbar { inset: 8px 8px auto; padding: 8px 10px; gap: 8px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand small { font-size: 8px; }
  .brand-mark { width: 32px; height: 36px; font-size: 12px; }
  .nav-toggle { font-size: 12px; padding-inline: 5px; }
  .topbar .button-small { padding: 8px 10px; min-height: 44px; font-size: 11px; }
  .hero-actions { grid-template-columns: 1fr; }
  
  .panel, .project-copy, .contact-panel { padding: 20px; }
  .project-preview { height: 220px; }
  .profile-facts { grid-template-columns: 1fr; }
  .contact-panel h2 { font-size: 34px; }
  .logo-carousel__header { flex-wrap: wrap; align-items: center; }
  .dialog-top .eyebrow { font-size: 9px; }
}

.employer { color: var(--accent); font-size: 12px; margin-bottom: 12px; }
.background-side { align-content: start; }

/* Placering af det nye hero-portræt. */
.portrait img { object-position: 50% 40%; filter: none; }
@media (max-width: 760px) {
  .portrait-code { top: 14px; left: auto; right: 14px; padding: 8px 10px; font-size: 8px; line-height: 1.5; }
}

/* Personlig profil: fortælling, kodekort og en håndskrevet note. */
.profile-creative {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 36px 64px;
  align-items: start;
}
.profile-title { grid-column: 1 / -1; }
.profile-title h2 { display: flex; align-items: center; gap: .2em; flex-wrap: wrap; font-size: clamp(40px, 5.6vw, 72px); margin-bottom: 14px; }
.profile-title h2 em { font-family: Georgia, serif; font-weight: 400; font-style: italic; }
.profile-wave { margin-left: 12px; color: var(--accent); font-size: .62em; transform: rotate(-12deg); }

.profile-story { position: relative; padding-top: 30px; }
.profile-margin-note { display: inline-block; font: italic 20px Georgia, serif; color: #c9a99b; transform: rotate(-6deg); margin-bottom: 22px; }
.profile-story .body-large { font-size: clamp(22px, 2.3vw, 29px); line-height: 1.5; letter-spacing: -.025em; color: var(--text); margin-bottom: 26px; }
.profile-story > p:not(.body-large) { font-size: 14px; line-height: 1.9; }



.profile-identity { position: relative; border: 1px solid #604740; border-radius: 20px; background: linear-gradient(145deg, #30201e, #181617 65%); overflow: hidden; box-shadow: 0 16px 60px #0002; }
.profile-editor-bar { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid #543a34; font: 10px monospace; color: #c2a89e; }
.profile-editor-bar > span:first-child { display: flex; gap: 5px; }
.profile-editor-bar i { width: 6px; height: 6px; border-radius: 50%; background: #c47862; }
.profile-editor-bar i:nth-child(2) { background: #ac9279; }
.profile-editor-bar i:nth-child(3) { background: #798e7e; }
.profile-code-head { padding: 26px 28px 0; font: 13px/1.8 monospace; }
.profile-code-comment { color: #ac9a91; font-size: 11px; }
.profile-code-head p { margin: 14px 0 8px; color: #eee0d0; }
.profile-code-head p span { color: #e59eae; }
.profile-code-head b { font-weight: 400; color: var(--accent); }
.profile-code-facts { margin: 0; padding: 0 28px 0 44px; font: 11px/1.7 monospace; }
.profile-code-facts div { margin-bottom: 13px; min-width: 0; }
.profile-code-facts dt { color: #d9bca3; display: inline; }
.profile-code-facts dt::after { content: ': '; }
.profile-code-facts dd { display: inline; margin: 0; color: #b9cdbb; overflow-wrap: anywhere; }
.profile-code-facts dd::before, .profile-code-facts dd::after { content: '"'; }
.profile-code-end { display: block; padding: 0 28px 22px; font: 13px monospace; color: var(--accent); }
.profile-note { position: relative; margin: 4px 24px 26px; padding: 23px 24px 14px; transform: rotate(-2deg); background: #e4c6a9; color: #382823; box-shadow: 0 8px 18px #0003; border-radius: 2px 2px 18px 2px; }
.profile-note p { margin-bottom: 8px; font: italic 19px/1.5 Georgia, serif; color: #382823; }
.profile-note strong { font-weight: 400; }
.profile-note-pin { position: absolute; right: 14px; top: 8px; font-size: 20px; color: #913e2d; }
.profile-signature { display: block; text-align: right; font: italic 24px Georgia, serif; color: #713b2e; }









@media (max-width: 1000px) {
  .profile-creative { gap: 32px; }
  
  .profile-code-head { padding-inline: 22px; }
  .profile-code-facts { padding-inline: 34px 22px; }
}
@media (max-width: 760px) {
  .profile-creative { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .profile-title h2 { font-size: clamp(36px, 9.5vw, 58px); }
  .profile-title { grid-column: auto; }
  .profile-wave { margin-left: 4px; }
  .profile-story { padding-top: 0; }
  
  .profile-margin-note { font-size: 18px; margin-bottom: 18px; }
  .profile-note { margin-inline: 20px; }
  .profile-note p { font-size: 18px; }
  
  
}

.profile-title h2 { margin-bottom: 0; }

/* Projektbibliotek: filtre, status og en tydelig adskillelse af teknologier. */
.project-filters { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.project-filters button { min-height: 44px; padding: 10px 15px; border: 1px solid #57413e; border-radius: 24px; background: #21191b; color: #c9b9b3; font-size: 12px; transition: background .18s, color .18s; }
.project-filters button:hover { background: #392423; color: var(--text); }
.project-filters button[aria-pressed="true"] { background: var(--text); color: #261918; border-color: var(--text); }
.project-count { margin: 16px 0 24px; font-size: 12px; color: var(--muted); }
.project-card[hidden] { display: none; }
.project-card { display: flex; flex-direction: column; }
.project-card--featured { border-color: #775044; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; font: 10px/1.5 'Space Grotesk', sans-serif; color: #c9b7ad; }
.project-card--featured .project-card-top { color: #ffad94; background: #35211d; }
.project-card .project-preview { flex-shrink: 0; }
.project-card .project-copy { flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start; }
.project-card .project-copy h3 { font-size: 23px; }
.project-card .project-copy > p { min-height: 0; font-size: 13px; }
.project-card .project-copy .tags { margin-top: auto; padding-top: 8px; }
.project-card .project-copy .project-actions { width: 100%; }
.project-card .project-meta { margin-bottom: 12px; }
.project-status { display: inline-block; margin: 0 0 15px; font-size: 9px; line-height: 1.6; border: 1px solid #4b5f51; color: #bdcdbb; border-radius: 5px; padding: 3px 7px; }
.project-status--planned { border-color: #876840; color: #e9c58b; }
.project-preview .mock-content strong { display: block; font-size: 23px; line-height: 1.15; max-width: 18ch; }
.project-preview { height: 235px; }
.preview-food { background: radial-gradient(at 95% 90%, #b96343, transparent 70%), #392020; }
.preview-crm { background: radial-gradient(at 90% 90%, #3f6f83, transparent 75%), #18242c; }
.preview-shop { background: radial-gradient(at 95% 90%, #8a7c4b, transparent 70%), #2b2c20; }
.preview-web { background: radial-gradient(at 95% 90%, #7a4e67, transparent 70%), #2a202c; }
.preview-flow { background: radial-gradient(at 95% 90%, #39776a, transparent 70%), #192923; }
.preview-prototype { background: radial-gradient(at 95% 90%, #6c5a93, transparent 70%), #282135; }
.preview-code { background: radial-gradient(at 95% 90%, #986149, transparent 70%), #2a2021; }
.preview-architecture { background: radial-gradient(at 95% 90%, #625c80, transparent 70%), #25212e; }
.dialog-details ul { margin: 0; padding-left: 18px; font-size: 12px; color: var(--muted); }
.dialog-details li + li { margin-top: 7px; }
.dialog-project-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.project-actions > a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .project-filters { gap: 8px; }
  .project-filters button { font-size: 11px; padding-inline: 12px; }
  .project-card .project-copy h3 { font-size: 24px; }
  .project-card .project-copy > p { font-size: 14px; }
  .project-preview { height: 235px; }
  .project-card .project-actions .text-link { flex-basis: 100%; }
}

.project-screenshot--contain { background: #e0effa; }
.project-screenshot--contain img { object-fit: contain; object-position: center; }
