:root {
  --font-sans: "Inter", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", Arial, sans-serif;
  --color-background: #f1ece3;
  --color-foreground: #1c1c1c;
  --color-primary: #1c1c1c;
  --color-primary-foreground: #f5f5f5;
  --color-muted: #e8e8e8;
  --color-muted-foreground: #595959;
  --color-border: #d8d8d8;
  --color-focus: #1c1c1c;
  --animate-media: 1000ms;
  color: var(--color-foreground);
  background: var(--color-background);
  font-family: var(--font-sans);
  font-synthesis: none;
}
/* Knapper */
.menu-button,
.case-browser-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border-style: solid;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.case-browser-arrow {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--color-background);
}
.menu-button { border: 0; }
.menu-button:focus-visible,
.case-browser-arrow:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-background);
}

html,
body {
  overflow-x: clip;
}


body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--color-background);
}

button,
a {
  font: inherit;
}

.portfolio {
  position: relative;
  overflow-x: clip;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--color-background);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--color-background);
}

.hero-video {
  position: absolute;
  display: block;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--animate-media) ease-in-out;
}

.hero-video--ready {
  opacity: 1;
}

.hero-poster {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video--desktop {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video--mobile {
  display: none;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 28.6%;
  right: 6.7%;
  width: 44%;
  text-align: right;
}

.hero-copy p {
  margin: 0 3.2% 1.1rem 0;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 4.18vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
  margin-top: 0;
}

.hero-copy h1 span:last-child {
  font-size: clamp(1.45rem, 3vw, 3rem);
  line-height: 1.08;
  white-space: nowrap;
}

.hero-support {
  margin: 1.2rem 3.2% 0 0;
  color: var(--color-muted-foreground);
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
}

.hero-credit {
  position: absolute;
  z-index: 2;
  right: 6.55%;
  bottom: 7.1%;
  color: var(--color-foreground);
  text-align: right;
}

.hero-credit > strong {
  display: block;
  color: inherit;
  font-size: clamp(1.75rem, 1.83vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-credit > p {
  margin-top: 0.35rem;
  font-size: clamp(1rem, 1.04vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  opacity: 0.8;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.55rem 3.35rem;
  mix-blend-mode: difference;
  color: var(--color-primary-foreground);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: inherit;
  opacity: 0.85;
}

.lang-switch span { opacity: 0.45; }

.lang-switch__option {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
  font: inherit;
  opacity: 0.5;
  transition: opacity 180ms ease;
}

.lang-switch__option:hover { opacity: 0.85; }
.lang-switch__option--active { font-weight: 700; opacity: 1; }

.menu-button {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

.menu-button:hover,
.menu-button:focus-visible {
  color: inherit;
  background: transparent;
}

.menu-glyph {
  width: 2rem;
  height: 2rem;
  overflow: visible;
}

.menu-glyph__line {
  transform-box: view-box;
  transform-origin: 16px 16px;
  transition:
    transform 180ms ease-in-out 180ms,
    opacity 140ms ease-in-out 180ms;
}

.menu-glyph__o {
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  opacity: 0;
  transform-box: view-box;
  transform-origin: 16px 16px;
  transform: rotate(-90deg);
  transition:
    stroke-dashoffset 180ms ease-in-out,
    opacity 120ms ease-in-out;
}

/* Menu åben - O til X */
.menu-glyph--open .menu-glyph__o {
  stroke-dashoffset: 100;
  opacity: 0;
  transition:
    stroke-dashoffset 170ms ease-in-out,
    opacity 140ms ease-in-out 60ms;
}

.menu-glyph--open .menu-glyph__line--top {
  transform: rotate(45deg) translateY(7px) scaleX(0.9);
}

.menu-glyph--open .menu-glyph__line--mid {
  opacity: 0;
  transform: scaleX(0.2);
}

.menu-glyph--open .menu-glyph__line--bottom {
  transform: rotate(-45deg) translateY(-7px) scaleX(0.9);
}

.menu-overlay {
  position: fixed;
  z-index: 99;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--color-primary-foreground);
  background: var(--color-primary);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 320ms ease,
    visibility 0s linear 320ms;
}

.menu-overlay--open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 350ms ease;
}

.menu-peeking-figure {
  --peek-x: -14%;
  position: absolute;
  z-index: 0;
  bottom: -3vh;
  left: 0;
  width: clamp(18rem, 29vw, 33rem);
  height: auto;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(calc(var(--peek-x) - 14px));
  transition:
    opacity 240ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-overlay--open .menu-peeking-figure {
  opacity: 1;
  transform: translateX(var(--peek-x));
  transition-delay: 200ms;
}

.menu-overlay--open .menu-peeking-figure:hover {
  transform: translateX(calc(var(--peek-x) + 6%));
  transition-delay: 0ms;
}

.menu-overlay nav {
  position: relative;
  z-index: 1;
}

.menu-overlay:not(.menu-overlay--open) .menu-list {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.menu-overlay--open .menu-list {
  opacity: 1;
  transform: none;
  transition: opacity 280ms ease 120ms, transform 320ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}

.menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6rem;
  padding: 2rem;
  margin: 0;
  list-style: none;
}

.menu-list a {
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-decoration: none;
}

@media (min-width: 700px) and (max-width: 1023px) {
  .menu-peeking-figure {
    --peek-x: -17%;
    bottom: -2vh;
    width: clamp(17rem, 37vw, 23rem);
  }
}

@media (max-width: 699px) {
  .menu-peeking-figure {
    --peek-x: -22%;
    bottom: -1rem;
    width: clamp(12rem, 54vw, 15rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-peeking-figure,
  .menu-overlay--open .menu-peeking-figure,
  .menu-overlay--open .menu-peeking-figure:hover {
    transition: none;
  }
}

.graphiva-sticker {
  position: fixed;
  z-index: 80;
  top: auto;
  right: 0;
  bottom: clamp(4.5rem, 14vh, 7.5rem);
  left: auto;
  display: flex;
  width: 4.25rem;
  height: 8.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.35rem;
  overflow: hidden;
  border-radius: 0.35rem;
  background: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transform-origin: center;
  transition: top 220ms ease-out, left 220ms ease-out, width 220ms ease-out, height 220ms ease-out, opacity 140ms ease-out, transform 220ms ease-out;
}

.graphiva-sticker--edge {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.graphiva-sticker--contact {
  top: var(--sticker-top);
  right: auto;
  bottom: auto;
  left: var(--sticker-left);
  width: var(--sticker-width);
  height: var(--sticker-height);
  padding: 0.75rem 0.35rem;
  opacity: 1;
  pointer-events: auto;
  transform: rotate(0deg);
  animation: graphiva-contact-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes graphiva-contact-in {
  from {
    opacity: 0;
    transform: translateX(min(12rem, 18vw)) rotate(4deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

.graphiva-sticker img {
  display: block;
  transition: transform 220ms ease;
  width: 6.5rem;
  max-width: none;
  height: auto;
  flex: none;
  object-fit: contain;
  transform: rotate(-90deg);
}

.graphiva-sticker:hover img {
  transform: rotate(-90deg) scale(1.04);
}

.graphiva-sticker--contact img {
  transform: rotate(0deg);
}

.graphiva-sticker--contact:hover img {
  transform: rotate(0deg) scale(1.04);
}

.graphiva-sticker:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.portfolio-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--color-background);
}

.scene-media,
.scene-poster,
.scene-poster img,
.scene-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-poster img,
.scene-video {
  display: block;
  object-fit: cover;
  object-position: center;
}

.scene-video {
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--animate-media) ease-in-out;
}

.scene-video.is-ready { opacity: 1; }
.scene-video--mobile { display: none; }
.mobile-reference { display: none !important; }

.works-content {
  position: absolute;
  z-index: 2;
  top: 25.5%;
  left: 63.4%;
  width: 33%;
}

.works-content h2,
.timeline-content h2,
.personal-content h2,
.contact-content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

.works-content h2 { font-size: clamp(3rem, 4vw, 4.8rem); }

.works-tree {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 0;
  margin: 4.5rem 0 0;
  list-style: none;
}

.work-row {
  display: flex;
  width: max-content;
  height: auto;
  align-items: center;
  justify-content: flex-start;
  gap: 1.45rem;
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: none;
  font-size: clamp(1.5rem, 2.15vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  text-decoration: none;
}

.work-row:hover { background: none; opacity: 0.65; }
.work-row svg { width: 1.75rem; height: 1.75rem; stroke-width: 1.6; }

.work-children {
  display: grid;
  grid-template-rows: 0fr;
  padding-left: 3.2rem;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 300ms ease, opacity 300ms ease, margin 300ms ease;
}

.work-children::before { content: ""; overflow: hidden; }
.work-children--open {
  grid-template-rows: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
  opacity: 1;
}

.work-children--open::before { display: none; }
.work-child { margin: 0.8rem 0; font-size: clamp(1.15rem, 1.45vw, 1.75rem); }

.brief-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgb(0 0 0 / 55%);
}

.brief-dialog {
  position: relative;
  width: min(44rem, 100%);
  max-height: 84svh;
  padding: 3rem;
  overflow-y: auto;
  background: var(--color-background);
  clip-path: polygon(1.5% 0, 98.5% 0, 100% 3%, 100% 97%, 98% 100%, 2% 100%, 0 97%, 0 3%);
}

.brief-dialog p { margin: 0; white-space: pre-line; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.6; }
.brief-close { position: absolute; top: 0.8rem; right: 0.8rem; }

.timeline-content {
  position: absolute;
  z-index: 2;
  top: 15%;
  right: 6%;
  width: 52%;
  text-align: center;
}

.timeline-content h2 { font-size: clamp(3rem, 4.5vw, 5.4rem); }
.timeline-art { display: block; width: 100%; margin: 4.5rem auto 0; }
.timeline-content p { margin: 3.2rem 0 1.4rem; font-size: clamp(1.4rem, 1.65vw, 2rem); font-weight: 600; }
.collaboration-art { display: block; width: 88%; margin: 0 auto; }

.prototype-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  width: 84%;
  max-width: 34rem;
  padding: 0 0 0 2.6rem;
  margin: 4.5rem auto 0;
  text-align: left;
  list-style: none;
}

.prototype-timeline::before {
  position: absolute;
  top: 0.7rem;
  bottom: 0.7rem;
  left: 0.55rem;
  width: 1px;
  background: var(--color-border);
  content: "";
}

.prototype-timeline li {
  position: relative;
  display: block;
}

.prototype-timeline .timeline-marker {
  position: absolute;
  top: 0.45rem;
  left: calc(-2.6rem + 0.55rem);
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--color-foreground);
  border-radius: 50%;
  background: var(--color-background, #f7f3ea);
  transform: translateX(-50%);
}

.prototype-timeline .is-current .timeline-marker {
  background: var(--color-foreground);
  box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--color-foreground) 12%, transparent);
}

.prototype-timeline strong {
  display: block;
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  font-weight: 500;
}

.prototype-timeline p {
  margin: 0.35rem 0 0;
  font-size: clamp(0.98rem, 1.05vw, 1.12rem);
  line-height: 1.5;
  color: var(--color-muted-foreground);
}

.prototype-timeline small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--color-muted-foreground);
  opacity: 0.75;
}

.prototype-timeline .is-current strong { font-weight: 650; }

.personal-content {
  position: absolute;
  z-index: 2;
  top: 13%;
  right: 4.5%;
  width: 50%;
  height: 74%;
  text-align: center;
}

.personal-content h2 { font-size: clamp(2.7rem, 3.9vw, 4.7rem); }
.skills-cv {
  width: 100%;
  max-width: 34rem;
  margin: 2.2rem auto 0;
  text-align: left;
}

.skills-cv__heading {
  margin: 0 0 0.4rem;
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.skills-cv__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.skills-cv__list li {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.25;
}

.skills-cv__list li:first-child { border-top: 1px solid var(--color-border); }

.skills-cv__approach { margin-top: 2rem; }

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

.skills-cv__approach li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.3rem 0;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.3;
}

.skills-cv__approach li::before {
  content: "—";
  color: var(--color-muted-foreground);
}
.personal-content > .desktop-prototype { height: 100%; }

.personal-stack {
  position: relative;
  width: min(25vw, 29rem);
  height: 78%;
  margin: 4rem auto 0;
  touch-action: pan-y;
}

.personal-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  background: #111;
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 18%);
  transform: translate(calc(var(--card-order) * 0.8rem), calc(var(--card-order) * 0.55rem)) rotate(calc((var(--card-order) - 2) * 0.8deg));
  transition: transform 240ms ease-out, opacity 180ms ease-out;
  opacity: calc(1 - var(--card-order) * 0.1);
  z-index: calc(10 - var(--card-order));
}

.prototype-card {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  background: var(--color-background);
  text-align: left;
}

.prototype-card:hover { background: var(--color-background); }
.prototype-card[aria-hidden="true"] { pointer-events: none; }

.case-browser { width: min(31vw, 36rem); margin: 3rem auto 0; text-align: center; }
.case-browser .personal-stack { width: calc(100% - 3.2rem); height: clamp(22rem, 54vh, 31rem); margin: 0; }
.case-browser .prototype-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.case-card-media { position: relative; aspect-ratio: 16 / 10; width: 100%; flex-shrink: 0; overflow: hidden; border-bottom: 1px solid var(--color-border); }
.case-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.case-card-content { display: flex; flex: 1; width: 100%; flex-direction: column; justify-content: space-between; padding: 1.15rem 1.45rem 4rem; text-align: left; }
.case-card-content h3 { max-width: 90%; margin: 0; font-family: var(--font-display); font-size: clamp(1.3rem, 1.7vw, 1.85rem); font-weight: 700; line-height: 1.1; }
.case-card-role { margin: 0.4rem 0 0; color: var(--color-muted-foreground); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.case-card-content p { margin: 0.5rem 0 0; color: var(--color-muted-foreground); font-size: 0.85rem; font-weight: 500; line-height: 1.45; }
.case-card-actions { display: flex; flex-wrap: wrap; gap: 0.65rem 1.25rem; margin-top: 0.75rem; }
.case-card-actions a,
.case-browser-all { color: inherit; font-size: 0.85rem; font-weight: 650; text-underline-offset: 0.3rem; }
.case-card-actions a { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.35rem; }
.case-card-actions svg { width: 0.85rem; height: 0.85rem; }
.case-card-actions a:focus-visible,
.case-browser-all:focus-visible { border-radius: 0.15rem; outline: 2px solid var(--color-focus); outline-offset: 3px; }
.case-browser-controls { display: flex; width: calc(100% - 3.2rem); align-items: center; justify-content: center; gap: 1.1rem; margin-top: 5.5rem; }
.case-browser-arrow { min-width: 3.25rem; min-height: 3.25rem; border: 1.5px solid var(--color-foreground); border-radius: 50%; color: var(--color-foreground); }
.case-browser-arrow svg { width: 1.25rem; height: 1.25rem; stroke-width: 2.25; }
.case-browser-arrow:hover { color: var(--color-background); background: var(--color-foreground); }
.case-browser-all { display: block; width: calc(100% - 3.2rem); margin-top: 1.4rem; text-align: center; }

.contact-content {
  position: absolute;
  z-index: 2;
  top: 20%;
  right: 5.5%;
  width: 47%;
  text-align: center;
}

.contact-content h2 { font-size: clamp(3rem, 4.4vw, 5.3rem); }
.contact-subhead { margin: 0.45rem 0 4.5rem; font-size: clamp(1.5rem, 2vw, 2.4rem); font-weight: 500; }
.contact-value { margin: 0; color: inherit; font-size: clamp(1.5rem, 2vw, 2.4rem); font-weight: 600; text-decoration: none; }
.sticker-dock { display: block; width: 8.4rem; height: 4.25rem; margin: 4.5rem auto 0; }

.resume-link {
  position: absolute;
  z-index: 3;
  right: 4.7%;
  bottom: 4.8%;
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 2rem;
  color: white;
  background: #1c1c1c;
  text-decoration: none;
  transition: width 350ms ease;
}

.resume-link:hover,
.resume-link--active { width: 13.75rem; }
.resume-link svg { width: 1.25rem; min-width: 1.25rem; }
.resume-link span { display: none; white-space: nowrap; }
.resume-link:hover span,
.resume-link--active span { display: block; }

@media (max-width: 1023px) {
  .hero-section {
    height: 165svh;
    min-height: 680px;
  }

  .hero-video--desktop {
    display: none;
  }

  .hero-video--mobile {
    right: 0;
    bottom: 0;
    display: block;
    width: 100%;
    height: 50%;
    object-fit: cover;
    object-position: center top;
  }

  .hero-poster {
    top: auto;
    height: 50%;
  }

  .hero-poster img {
    object-position: center top;
  }

  .hero-copy {
    top: 18.25%;
    right: 5%;
    width: 90%;
    text-align: center;
  }

  .hero-copy p {
    margin: 0 0 1.1rem;
    font-size: clamp(1.25rem, 4.25vw, 1.8rem);
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 10vw, 4.35rem);
    line-height: 1.02;
  }

  .hero-copy h1 span {
    margin-top: 0;
  }

  .hero-support {
    margin: 0.9rem 0 0;
    font-size: clamp(0.9rem, 3.6vw, 1.05rem);
  }

  .hero-credit {
    display: none;
  }

  .site-header {
    padding: 1.25rem 1.35rem;
  }

  .graphiva-sticker {
    padding: 0.55rem 0.25rem;
  }

  .graphiva-sticker--contact {
    padding: 0.55rem 0.25rem;
  }

  .graphiva-sticker img {
    width: 5.2rem;
  }

  .graphiva-sticker--edge { width: 3.25rem; height: 6.4rem; }

  .portfolio-section { height: 165svh; min-height: 680px; }
  .scene-video--desktop { display: none; }
  .scene-video--mobile { display: block; }

  .works-section .scene-media,
  .works-section .scene-poster,
  .works-section .scene-video {
    top: auto;
    bottom: 0;
    height: 50%;
  }

  .works-section .scene-poster img,
  .works-section .scene-video { object-position: center top; }

  .works-content { top: 7%; left: 5.8%; width: 88%; }
  .works-content h2 { font-size: clamp(2.7rem, 8.4vw, 4rem); }
  .works-tree { gap: 1rem; margin-top: 2.2rem; }
  .work-row { gap: 1.15rem; font-size: clamp(1.45rem, 4.4vw, 2rem); }
  .work-row svg { width: 1.8rem; height: 1.8rem; }
  .work-children { padding-left: 3rem; }

  .timeline-section .scene-media,
  .timeline-section .scene-poster,
  .timeline-section .scene-video,
  .personal-section .scene-media,
  .personal-section .scene-poster,
  .personal-section .scene-video,
  .contact-section .scene-media,
  .contact-section .scene-poster,
  .contact-section .scene-video {
    top: auto;
    bottom: 0;
    height: 47%;
  }

  .timeline-section .scene-poster img,
  .timeline-section .scene-video,
  .personal-section .scene-poster img,
  .personal-section .scene-video,
  .contact-section .scene-poster img,
  .contact-section .scene-video { object-position: center top; }

  .timeline-content { top: 5.5%; right: 5%; width: 90%; }
  .timeline-content h2 { font-size: clamp(2.5rem, 8vw, 3.9rem); }
  .timeline-art { margin-top: 3.1rem; }
  .timeline-content p { margin: 1.5rem 0 0.7rem; font-size: 1.05rem; }
  .collaboration-art { width: 94%; }

  .personal-content { top: 5.5%; right: 4%; width: 92%; height: 49%; }
  .personal-content h2 { font-size: clamp(2.15rem, 7.1vw, 3.4rem); }
  .skills-cv { margin-top: 1.2rem; max-width: 26rem; }
  .skills-cv__heading { margin-bottom: 0.25rem; font-size: 0.68rem; }
  .skills-cv__list li { gap: 0.9rem; padding: 0.45rem 0; font-size: clamp(0.82rem, 3.2vw, 0.95rem); }
  .skills-cv__approach { margin-top: 1.2rem; }
  .skills-cv__approach li { font-size: clamp(0.75rem, 2.8vw, 0.85rem); }
  .personal-stack { width: min(43vw, 18rem); height: 68%; margin-top: 1.6rem; }
  .personal-card { border-radius: 1rem; }
  .case-browser { width: min(86vw, 27rem); margin-top: 1.4rem; }
  .case-browser .personal-stack { width: calc(100% - 2.4rem); height: clamp(28rem, 54svh, 30rem); margin: 0; }
  .case-browser-controls { width: calc(100% - 2.4rem); margin-top: 4rem; }
  .case-browser-all { width: calc(100% - 2.4rem); }

  .contact-content { top: 6%; right: 5%; width: 90%; }
  .contact-content h2 { font-size: clamp(2.5rem, 8vw, 3.8rem); }
  .contact-subhead { margin: 0.35rem 0 2rem; font-size: 1.35rem; }
  .contact-value { font-size: 1.35rem; }
  .sticker-dock { width: 6.4rem; height: 3.25rem; margin-top: 2.5rem; }
  .resume-link { right: 1rem; bottom: 1rem; }
}

@media (max-width: 430px) {
  .works-content { top: 9.5%; }
  .works-tree { gap: 1.35rem; margin-top: 3.6rem; }
  .work-row { font-size: 1.34rem; }
  .work-row svg { width: 1.55rem; height: 1.55rem; }
  .timeline-art { width: 108%; margin-left: -4%; }
  .brief-dialog { padding: 2.8rem 1.4rem 1.8rem; }
}

.figure-pin {
  position: relative;
  width: 100%;
  height: 100%;
}

.figure-end-anchor {
  position: absolute;
  top: calc(100% - 100dvh);
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.figure-content-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  transform-origin: center;
  transition: opacity 180ms ease-out, transform 240ms ease-out;
  will-change: opacity, transform;
}

.figure-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  pointer-events: none;
}



.figure-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 4vh 0 3vh 2vw;
  object-fit: contain;
  object-position: left bottom;
  transform: translateX(calc(var(--figure-shift, 0%) + var(--fig-x, 0px)));
  transition: opacity 160ms ease-out, transform 220ms ease-out;
  will-change: opacity, transform;
}

@media (max-width: 1023px) {
  .figure-section {
    overflow: visible;
  }

  .figure-section .figure-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .figure-section .figure-layer {
    display: block;
  }

  .figure-image {
    top: auto;
    bottom: 1.25rem;
    width: 100%;
    height: 45%;
    padding: 0 1.25rem;
    object-position: center bottom;
  }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .figure-section .figure-pin { min-height: 620px; }

  .figure-image {
    bottom: 2.5vh;
    width: 61%;
    height: 76%;
    padding: 3vh 1vw 2vh 2vw;
    object-position: left bottom;
  }

  .hero-copy {
    top: 24%;
    right: 8%;
    width: 46%;
    text-align: right;
  }

  .hero-copy p { margin-right: 0; }
  .hero-copy h1 { font-size: clamp(3rem, 7vw, 3.75rem); }
  .works-content { top: 16%; left: 57%; width: 39%; }
  .works-tree { margin-top: 3rem; }
  .work-row { font-size: clamp(1.15rem, 2.6vw, 1.65rem); }
  .timeline-content { top: 12%; right: 4%; width: 52%; }
  .prototype-timeline { width: 100%; max-width: none; margin-top: 3rem; gap: 1.6rem; padding-left: 2.2rem; }
  .prototype-timeline .timeline-marker { left: calc(-2.2rem + 0.55rem); }
  .prototype-timeline strong { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
  .personal-content { top: 10%; right: 3%; width: 53%; height: 72%; }
  .skills-cv { gap: 1.6rem 2rem; margin-top: 1.8rem; max-width: 25rem; padding-right: 4.5rem; }
  .skills-cv__list li { font-size: clamp(0.85rem, 1.5vw, 1rem); }
  .personal-stack { width: min(31vw, 18rem); height: 69%; margin-top: 2.5rem; }
  .case-browser { width: min(38vw, 23rem); margin-top: 2rem; }
  .case-browser .personal-stack { width: calc(100% - 2.6rem); height: clamp(24rem, 56vh, 31rem); margin: 0; }
  .case-browser-controls { width: calc(100% - 2.6rem); margin-top: 4rem; }
  .case-browser-all { width: calc(100% - 2.6rem); }
  .contact-content { top: 15%; right: 3%; width: 52%; }
}

@media (max-width: 699px) {
  .figure-image { --figure-shift: 0%; }
  .figure-section--works .figure-image,
  .figure-section--personal .figure-image,
  .figure-section--contact .figure-image { --figure-shift: -2%; }

  .timeline-section .scene-media,
  .timeline-section .scene-poster,
  .timeline-section .scene-video { height: 27%; }

  .prototype-timeline {
    gap: 1.05rem;
    width: 100%;
    padding-left: 2.25rem;
    padding-right: 3.75rem;
    margin-top: 1.5rem;
  }

  .prototype-timeline::before { left: 0.55rem; }
  .prototype-timeline .timeline-marker { left: calc(-2.25rem + 0.55rem); }
  .prototype-timeline strong { font-size: clamp(1.05rem, 4.6vw, 1.35rem); }
  .prototype-timeline p { margin-top: 0.2rem; font-size: 0.88rem; }
  .prototype-timeline small { font-size: 0.75rem; }
  .prototype-card { padding: 1.35rem; }
  .case-card-content { padding: 1rem 1.1rem 4rem; }
  .case-card-content h3 { max-width: 100%; font-size: clamp(1.15rem, 5vw, 1.5rem); }
  .case-card-role { margin-top: 0.35rem; font-size: 0.66rem; }
  .case-card-content p { margin-top: 0.4rem; font-size: 0.8rem; }
  .case-card-actions { gap: 0.4rem 1rem; margin-top: 0.7rem; }
  .case-card-actions a { min-height: 2.75rem; font-size: 0.8rem; }
  .case-browser-arrow { min-width: 3rem; min-height: 3rem; }
}

@media (min-width: 700px) and (max-height: 900px) {
  .timeline-content { top: 7%; }
  .timeline-content h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
  .prototype-timeline { gap: 1rem; margin-top: 1.5rem; }
  .prototype-timeline strong { font-size: clamp(1.05rem, 1.5vw, 1.55rem); }
  .prototype-timeline p { margin-top: 0.2rem; font-size: clamp(0.82rem, 1vw, 1rem); line-height: 1.35; }
  .prototype-timeline small { margin-top: 0.2rem; font-size: 0.75rem; }

  .works-content { top: 8%; }
  .works-content h2 { font-size: clamp(2.6rem, 3.6vw, 4rem); }
  .case-browser { margin-top: 1.35rem; }
  .case-browser .personal-stack { height: clamp(24rem, 58dvh, 34rem); }
  .case-browser-controls { margin-top: 4rem; }
  .case-browser-arrow { min-width: 3rem; min-height: 3rem; }
}

@media (min-width: 1024px) {
  .skills-cv { padding-left: 1.5rem; }


  .figure-section {
    height: 240vh;
    height: 240dvh;
    overflow: visible;
  }

  .figure-section .figure-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .figure-section .figure-layer {
    display: block;
  }

  .figure-section .hero-media,
  .figure-section .scene-media {
    display: none;
  }

  .ending-section {
    height: 260vh;
    height: 260dvh;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .figure-section {
    height: 100vh;
    height: 100dvh;
  }

  .figure-image + .figure-image {
    display: none;
  }

  .ending-section {
    height: 240vh;
    height: 240dvh;
  }

  .ending-section .figure-image + .figure-image {
    display: block;
  }

  .ending-section .figure-content-layer,
  .ending-section .figure-image {
    transform: none !important;
  }
}


@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .menu-glyph * {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .menu-overlay,
  .menu-overlay--open {
    transition: opacity 200ms ease, visibility 0s linear 200ms !important;
  }

  .menu-overlay--open {
    transition: opacity 200ms ease !important;
  }

  .menu-overlay .menu-list {
    transition: none !important;
    transform: none !important;
  }

  .menu-glyph__o {
    display: none;
  }

  .scene-video,
  .personal-card,
  .figure-image,
  .figure-content-layer,
  .graphiva-sticker,
  .resume-link { transition-duration: 1ms; }

  .graphiva-sticker--contact { animation-duration: 1ms; }
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-muted-foreground);
  opacity: 1;
  transition: opacity 320ms ease-out;
  pointer-events: none;
  z-index: 5;
}

.scroll-cue span { transform: rotate(-4deg); }

.scroll-cue--hidden { opacity: 0; }

.scroll-cue svg {
  width: 1rem;
  height: 1rem;
  animation: scroll-cue-bob 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
}

/* Skill + case */
.skills-cv__list li { flex-wrap: wrap; }
.skills-cv__list li .skill-evidence { display: inline-flex; flex-wrap: wrap; gap: 0.1rem 0.5rem; margin-left: auto; font-size: 0.72rem; opacity: 0.55; transition: opacity 150ms ease; }
.skills-cv__list li:hover .skill-evidence, .skills-cv__list li:focus-within .skill-evidence { opacity: 1; }
.skill-evidence__label { color: var(--color-muted-foreground); }
.skill-evidence button { padding: 0.2rem 0; font: inherit; color: var(--color-foreground); text-decoration: underline; text-underline-offset: 0.2em; background: none; border: 0; cursor: pointer; }
.skill-evidence button:focus-visible, .case-process-button:focus-visible, .contact-cta:focus-visible { outline: 2px solid var(--color-foreground); outline-offset: 3px; }

/* Processen */
.case-process-button { min-height: 2.75rem; padding: 0; font: inherit; font-size: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; background: none; border: 0; cursor: pointer; }
.process-dialog { width: min(92vw, 34rem); max-height: 86dvh; padding: 0; color: var(--color-foreground); background: var(--color-background); border: 1px solid var(--color-foreground); border-radius: 1rem; }
.process-dialog::backdrop { background: color-mix(in oklab, var(--color-foreground) 45%, transparent); }
.process-dialog__inner { text-align: left; padding: clamp(1.25rem, 4vw, 2rem); }
.process-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.process-dialog h3 { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 1.9rem); }
.process-dialog dl { margin: 0; }
.process-dialog dl > div { padding: 0.75rem 0; border-top: 1px solid var(--color-border); }
.process-dialog dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted-foreground); }
.process-dialog dd { margin: 0.3rem 0 0; font-size: 0.95rem; line-height: 1.45; }
.process-dialog ol { margin: 0; padding-left: 1.1rem; list-style: decimal; }

/* Kontakt */
.contact-cta { display: inline-flex; min-height: 2.75rem; align-items: center; margin-top: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem; }
.contact-content a.contact-email { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.55rem 1.2rem; border: 1.5px solid var(--color-foreground); border-radius: 0.4rem; font-size: clamp(1.1rem, 1.5vw, 1.6rem); text-decoration: none; transition: background 150ms ease, color 150ms ease; max-width: 100%; }
.contact-content a.contact-email:hover { color: var(--color-background); background: var(--color-foreground); }
.contact-content a.contact-email:focus-visible, .skills-cta:focus-visible { outline: 2px solid var(--color-foreground); outline-offset: 3px; }
.skills-cta { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; margin-top: 1.6rem; padding: 0.5rem 1.1rem; border: 1.5px solid var(--color-foreground); border-radius: 0.4rem; color: inherit; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background 150ms ease, color 150ms ease; }
.skills-cta:hover { color: var(--color-background); background: var(--color-foreground); }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  .graphiva-sticker, .graphiva-sticker--contact { animation: none !important; transition: none !important; }
}

/* Tablet/mobil - normalt scroll */
@media (max-width: 1023px) {
  .figure-section,
  .hero-section,
  .portfolio-section,
  .ending-section {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
  }

  .figure-section .hero-media,
  .figure-section .scene-media { display: none !important; }

  .figure-section .figure-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
    height: auto;
    min-height: 0;
    padding: 6.5rem 1.5rem 4rem;
    overflow: visible;
  }

  .figure-section .figure-layer {
    position: relative;
    inset: auto;
    display: block;
    order: 2;
    width: clamp(10rem, 52vw, 17rem);
  }

  .figure-section .figure-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    padding: 0;
    opacity: 1 !important;
    transform: none !important;
    object-fit: contain;
  }

  .figure-section .figure-image + .figure-image { display: none; }

  .hero-copy,
  .works-content,
  .timeline-content,
  .personal-content,
  .contact-content,
  .figure-content-layer {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 40rem;
    height: auto !important;
    transform: none !important;
  }

  .figure-content-layer {
    opacity: 1 !important;
    pointer-events: auto !important;
    order: 1;
  }

  .hero-copy { order: 1; text-align: center; }
  .hero-copy h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .hero-copy h1 span:last-child { white-space: normal; font-size: 0.72em; }
  .hero-support { font-size: 1rem; }

  .hero-credit {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    order: 3;
    margin-top: -1rem;
    text-align: center;
    transform: none !important;
  }

  .scroll-cue { display: none; }

  .works-content h2,
  .timeline-content h2,
  .personal-content h2,
  .contact-content h2 { font-size: clamp(2.4rem, 10vw, 3rem); }

  .timeline-content p,
  .prototype-timeline p { font-size: 1rem; }

  .timeline-content, .works-content { order: 1; }
  .figure-section--timeline .figure-layer { order: 2; width: clamp(10rem, 55vw, 17rem); }
  .figure-section--works .figure-layer { order: 0; width: clamp(7rem, 32vw, 10rem); margin-bottom: -1.5rem; }

  .case-browser { width: min(91vw, 27rem) !important; margin-inline: auto; }
  .case-browser-controls { margin-top: 5rem !important; }
  .case-browser-all { text-align: center; }

  .ending-section .figure-pin { gap: 3rem; }
  .ending-section .figure-layer { order: 3; width: clamp(8rem, 40vw, 14rem); }
  .figure-content-layer--start { order: 1; }
  .figure-content-layer--end { order: 2; }
  .contact-content { text-align: center; }
  .contact-actions { justify-content: center; }
  .contact-actions a.contact-email { min-height: 2.6rem; padding: 0.4rem 0.9rem; font-size: 1.05rem; }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .figure-section .figure-pin {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem 2.5rem;
    padding: 7rem 4% 5rem;
    min-height: 100svh;
  }

  .figure-section .figure-layer,
  .figure-section--timeline .figure-layer,
  .figure-section--works .figure-layer {
    grid-column: 1;
    grid-row: 1 / span 3;
    order: 0;
    width: 100%;
    max-width: 27rem;
    margin: 0 auto;
  }

  /* Fjerner den tomme plads i siderne af PNG-filen */
  .figure-section .figure-image {
    aspect-ratio: 5 / 4;
    height: auto;
    object-fit: cover;
    object-position: center;
  }

  .hero-copy, .hero-credit, .works-content, .timeline-content,
  .personal-content, .contact-content, .figure-content-layer { grid-column: 2; }
  .hero-copy { grid-row: 1; text-align: left; }
  .hero-credit { grid-row: 2; margin-top: 0; text-align: left; }
  .hero-copy h1 { font-size: clamp(2.8rem, 6.5vw, 3.8rem); }
  .works-content h2, .timeline-content h2, .personal-content h2, .contact-content h2 { font-size: clamp(3.2rem, 7vw, 4rem); }
  .case-browser { width: 100% !important; max-width: 26rem; }
  .ending-section .figure-layer { grid-row: 1 / span 2; width: 100%; }
  .figure-content-layer--start { grid-row: 1; }
  .figure-content-layer--end { grid-row: 2; }
  .contact-content { text-align: left; }
}
@media (max-width: 1023px) {
  .hero-support { font-size: 1.05rem !important; line-height: 1.5 !important; margin-top: 1rem !important; }
  .figure-section--hero .figure-layer { width: clamp(14rem, 62vw, 27rem); }
  .figure-section--timeline .figure-layer { width: clamp(14rem, 62vw, 27rem); }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .figure-section .figure-pin { align-content: center; }
  .hero-credit { align-self: start; }
  .hero-copy { align-self: end; }
  /* Tablet - figur til venstre for teksten */
  .figure-section--hero .figure-layer { width: clamp(14rem, 62vw, 27rem); justify-self: start; }
}
@media (max-width: 1023px) {
  .ending-section .figure-content-layer--end { padding-top: clamp(4rem, 12vw, 6rem); }
  .ending-section .figure-content-layer--end .contact-content h2 { margin-top: 0; }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .figure-section--hero .figure-pin { grid-template-rows: auto auto; align-content: center; row-gap: 1.5rem; }
  .figure-section--hero .figure-layer { grid-row: 1 / span 2; align-self: center; }
  .hero-copy { align-self: end; }
  .hero-credit { align-self: start; }
  .ending-section .figure-pin { row-gap: 0; }
}
/* Figurer på mobil */
@media (max-width: 699px) {
  .figure-section .figure-pin { gap: 1.5rem; padding-bottom: 3rem; }
  .figure-section--hero .figure-layer { width: min(82vw, 22rem); margin: 0 auto; }
  .figure-section--timeline .figure-layer,
  .figure-section--works .figure-layer,
  .figure-section--personal .figure-layer,
  .ending-section .figure-layer { width: min(70vw, 19rem); margin: 0 auto; }
  .figure-section--works .figure-layer { margin-bottom: -0.5rem; }
  .figure-section .figure-image { max-height: 62svh; object-fit: contain; }
  .figure-section--hero .figure-image { max-height: 68svh; }
  .hero-credit { margin-top: 0; }
  .ending-section .figure-pin { gap: 2rem; }
}
@media (max-width: 699px) {
  /* Samme her - fjerner luft i siderne */
  .figure-section .figure-layer { width: min(62vw, 16rem) !important; margin: 0 auto !important; }
  .figure-section--hero .figure-layer { width: min(72vw, 19rem) !important; }
  .figure-section .figure-image { aspect-ratio: 4 / 5; height: auto !important; max-height: none; object-fit: cover !important; object-position: center; }
}
@media (max-width: 699px) {
  .figure-section .figure-layer { width: min(78vw, 20rem) !important; }
  .figure-section--hero .figure-layer { width: min(88vw, 23rem) !important; }
  .figure-section .figure-image { aspect-ratio: 1 / 1; }
  .figure-section--hero .figure-pin { padding-bottom: 2rem; }
}
@media (max-width: 699px) {
  .figure-section .figure-layer { width: min(90vw, 23rem) !important; }
  .figure-section--hero .figure-layer { width: min(96vw, 25rem) !important; }
  .figure-section .figure-image { aspect-ratio: 5 / 4; }
}
@media (max-width: 699px) {
  .figure-section:not(.figure-section--hero) .figure-pin { padding-top: 4.5rem; }
}

/* Ekstra hero-figur på mobil */
@media (min-width: 700px) {
  .figure-section .figure-image--mobile,
  .figure-section .figure-image--mobile-first { display: none; }
}
@media (max-width: 699px) {
  .figure-section--hero .figure-layer .figure-image--mobile,
  .figure-section--hero .figure-layer .figure-image--mobile-first {
    display: none;
    aspect-ratio: auto;
    object-fit: contain !important;
    object-position: center bottom;
    max-height: 74svh;
  }
  .figure-section--hero .figure-layer { aspect-ratio: 1 / 1.06; }
  .figure-section--hero .figure-layer .figure-image--mobile-first,
  .figure-section--hero .figure-layer .figure-image--mobile {
    position: absolute;
    inset: auto 0 0;
  }
  .figure-section--hero .figure-layer .figure-image--mobile-first { display: block; }
  .figure-section--hero .figure-layer .figure-image:first-child,
  .figure-section--hero .figure-layer .figure-image:nth-child(2) { display: none; }
  .figure-section--hero[data-mobile-hero-swapped="true"] .figure-layer .figure-image--mobile-first { display: none; }
  .figure-section--hero[data-mobile-hero-swapped="true"] .figure-layer .figure-image--mobile { display: block; }
  .figure-section--works .figure-layer { order: 2; margin-bottom: 0 !important; }
  .figure-section--works .figure-image { object-fit: contain !important; }
  .skills-mobile-figure {
    display: block;
    width: min(90vw, 23rem);
    height: auto;
    aspect-ratio: 5 / 4;
    margin: 2rem auto 0;
    object-fit: cover;
    object-position: center;
  }
}
@media (min-width: 700px) {
  .skills-mobile-figure { display: none; }
}

/* Min rejse + arbejde - figuren skifter ved scroll */
@media (max-width: 699px) {
  .figure-section--timeline .figure-layer,
  .figure-section--works .figure-layer { position: relative; aspect-ratio: 1 / 1.06; }
  .figure-section--timeline .figure-layer .figure-image,
  .figure-section--works .figure-layer .figure-image {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center bottom;
    transform: none !important;
    transition: opacity 0.2s ease;
  }
  .figure-section--timeline .figure-layer .figure-image:first-child { opacity: 1 !important; }
  /* Arbejde - peger først, tæller bagefter */
  .figure-section--works .figure-layer .figure-image:first-child,
  .figure-section--works .figure-layer .figure-image:nth-child(2) { display: none !important; }
  .figure-section--works .figure-layer .figure-image--mobile { opacity: 1 !important; }
  .figure-section--works .figure-layer .figure-image--mobile-first { opacity: 0 !important; }
  .figure-section--timeline .figure-layer .figure-image:nth-child(2) { opacity: 0 !important; }
  .figure-section--timeline[data-mobile-hero-swapped="true"] .figure-layer .figure-image:first-child { opacity: 0 !important; }
  .figure-section--works[data-mobile-hero-swapped="true"] .figure-layer .figure-image--mobile { opacity: 0 !important; }
  .figure-section--works[data-mobile-hero-swapped="true"] .figure-layer .figure-image--mobile-first { opacity: 1 !important; }
  .figure-section--timeline[data-mobile-hero-swapped="true"] .figure-layer .figure-image:nth-child(2) { opacity: 1 !important; }
}
@media (max-width: 699px) and (prefers-reduced-motion: reduce) {
  .figure-section--timeline .figure-layer .figure-image,
  .figure-section--works .figure-layer .figure-image { transition: none; }
}

/* Samme størrelse på alle mobilfigurer */
@media (max-width: 699px) {
  .figure-section .figure-layer {
    width: min(92vw, 24rem) !important;
    aspect-ratio: 1 / 1.06 !important;
    height: auto !important;
    margin-inline: auto;
  }
  .figure-section .figure-layer .figure-image {
    object-fit: contain !important;
    object-position: center bottom;
  }
  /* Kokke-figuren har ekstra luft i siderne */
  .figure-section--timeline .figure-layer .figure-image:first-child {
    object-fit: cover !important;
  }
  /* Kontakt - call me-figuren */
  .figure-section--contact .figure-layer .figure-image:first-child,
  .figure-section--contact .figure-layer .figure-image:nth-child(2) { display: none !important; }
  .figure-section--contact .figure-layer .figure-image--mobile-first {
    display: block !important;
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    transform: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center bottom;
    margin: 0 !important;
    max-height: none !important;
  }
  .skills-mobile-figure {
    width: min(92vw, 24rem) !important;
    max-width: none !important;
    aspect-ratio: 1 / 1.06;
    object-fit: contain;
    object-position: center bottom;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

/* Matcher figurstørrelserne på mobil */
@media (max-width: 699px) {
  .figure-section .figure-layer { width: min(72vw, 19rem) !important; }
  .figure-section--hero .figure-layer {
    width: 100vw !important;
    max-width: none !important;
    aspect-ratio: 1.55 / 1 !important;
    margin-left: 50% !important;
    transform: translateX(-50%);
  }
  .skills-mobile-figure {
    width: 100vw !important;
    aspect-ratio: 1.44 / 1;
  }
}
@media (max-width: 699px) {
  .figure-section--hero .figure-layer .figure-image { left: 0 !important; right: 0 !important; margin-inline: auto !important; object-position: center bottom !important; }
}
@media (max-width: 699px) {
  .figure-section--hero .figure-layer { overflow: hidden; }
  .figure-section--hero .figure-layer .figure-image--mobile,
  .figure-section--hero .figure-layer .figure-image--mobile-first {
    position: absolute !important; inset: 0 !important; top: 0 !important; bottom: 0 !important;
    width: 100% !important; height: 100% !important; max-height: none !important;
    aspect-ratio: auto !important; object-fit: contain !important; transform: none !important;
  }
}
@media (max-width: 699px) {
  .figure-section--hero[data-mobile-hero-swapped] .figure-layer .figure-image.figure-image--mobile,
  .figure-section--hero[data-mobile-hero-swapped] .figure-layer .figure-image.figure-image--mobile-first {
    position: absolute !important; inset: 0 !important; top: 0 !important; bottom: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important; max-height: none !important; margin: 0 !important;
    aspect-ratio: auto !important; object-fit: contain !important; transform: none !important;
  }
}

@media (max-width: 699px) {
  .hero-copy h1 { text-align: left; }
  .hero-copy > p:first-of-type { text-align: left; }
  .hero-support { text-align: left; }
}
@media (max-width: 699px) {
  .skills-mobile-figure {
    width: min(92vw, 24rem) !important;
    aspect-ratio: 1 / 1.06 !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center bottom;
    transform: translateX(-55%);
  }
}

/* Tablet landscape / smal desktop - figur væk fra teksten */
@media (min-width: 1024px) and (max-width: 1366px) {
  .figure-section--hero .figure-image {
    width: 100%;
    padding-left: 0;
    transform: translateX(-13%) !important;
  }
}

.figure-video {
  object-fit: contain;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  overflow: hidden;
  /* Fader videokanten lidt ud */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 4.5%, #000 95.5%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 4.5%, #000 95.5%, transparent 100%);
  mask-composite: intersect;
}

/* Holder videoen inde i rammen */
@media (min-width: 1024px) {
  .figure-section--contact .figure-video {
    left: 0;
    right: auto;
    width: 46%;
    padding-left: 0;
    object-position: center bottom;
    transform-origin: center bottom;
    transform: translate(2%, 4%) scale(1.19) !important;
  }
}

/* Tablet - video i stedet for billede */
@media (min-width: 700px) and (max-width: 1023px) {
  .figure-section--contact .figure-layer .figure-image:first-child { display: none !important; }
  .figure-section--contact .figure-layer .figure-video:not(.figure-image--mobile-first) {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9 / 16 !important;
    object-fit: contain !important;
    object-position: center bottom;
    opacity: 1 !important;
    transform: scale(1.04) !important;
    transform-origin: center bottom;
  }

  /* Lidt større video på mobil */
  .figure-section--contact .figure-video.figure-image--mobile-first {
    transform: scale(1.02) !important;
    transform-origin: center bottom;
  }
}

/* Samme baggrund så videoen blender bedre */
.figure-section--contact {
  background-color: #f0ece3;
}
