/* ARKIVET I BORDET – forsiden.
   Lægges oven på /assets/Footer-*.css (reset, skrifttyper IBM Plex, Klaro-cookiebanner). Alt nyt hedder ax-… */

@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/arkiv/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/arkiv/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
}

:root {
  --g0: #0d0e0f;
  --g1: #151719;
  --g2: #1d2023;
  --g3: #2a2e32;
  --line: #3b4146;
  --paper: #ecebe3;
  --paper-2: #d8d6ca;
  --ink: #141516;
  --muted: #a7a8a2;
  --orange: #ff5a1f;
  --orange-ink: #141516;
  --f-cond: 'Barlow Condensed', 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --gut: clamp(1rem, 4.5vw, 3.5rem);
  --persp: 1500px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 3.5rem;
  color-scheme: dark;
}

html {
  background: var(--g0);
  scroll-padding-top: 4.5rem;
}
body.ax {
  margin: 0;
  padding: 0;
  max-width: none;
  background: var(--g0);
  color: var(--paper);
  font-family: var(--font-sans, 'IBM Plex Sans', system-ui, sans-serif);
  font-size: 1.0625rem;
  line-height: 1.6;
}
body.ax a {
  color: inherit;
}
body.ax :focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
.ax-vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header + ScrollMap ---------- */
.ax-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 var(--gut);
  background: linear-gradient(to bottom, rgba(13, 14, 15, 0.92), rgba(13, 14, 15, 0));
}
.ax-brand {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-right: auto;
}
.ax-brand i {
  font-style: normal;
  color: var(--muted);
}
.ax-map {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  width: 4.6rem;
  height: 2.5rem;
  padding: 0;
  position: relative;
}
.ax-map button {
  position: relative;
  border: 1px solid var(--line);
  background: var(--g3);
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.ax-map button::after {
  content: '';
  position: absolute;
  inset: -4px; /* større træffeflade */
}
.ax-map button:nth-child(1) {
  grid-row: 1 / span 2;
}
.ax-map button:hover {
  background: #444a50;
  transform: translateY(-1px);
}
.ax-map button[aria-current='true'] {
  background: var(--orange);
  border-color: var(--orange);
}
.ax-map-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.ax-map-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 7.5rem;
}
.ax-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.ax-links a {
  text-decoration: none;
  padding: 0.5rem 0.1rem;
  border-bottom: 1px solid transparent;
}
.ax-links a:hover {
  border-bottom-color: var(--paper);
}
.ax-menu-btn {
  display: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
@media (max-width: 759px) {
  .ax-map-label {
    display: none;
  }
  .ax-menu-btn {
    display: block;
  }
  .ax-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    right: var(--gut);
    flex-direction: column;
    gap: 0;
    background: var(--g2);
    border: 1px solid var(--line);
    padding: 0.4rem 0.9rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .ax-links[data-open='true'] {
    display: flex;
  }
  .ax-links a {
    display: block;
    padding: 0.7rem 0.2rem;
  }
}

/* ---------- Scenen ---------- */
.ax-stage {
  --p: 0;
  --pc: 0;
  --h0: max(100svh, 41rem);
  --h1: 100svh;
  --fs0: clamp(4.6rem, 12.4vw, 13.5rem);
  --fs1: clamp(3.2rem, 5.6vw, 6.4rem);
  --hd: calc(4.6rem + 1.68 * var(--fs1) + 12rem); /* højde på navn og tekst, når arkivet er åbent */
  position: relative;
  height: max(var(--h0), calc(var(--h0) + (var(--h1) - var(--h0)) * var(--pc)));
  overflow: clip;
  isolation: isolate;
  background: var(--g1);
}
.ax-probe {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: var(--h0);
  pointer-events: none;
  visibility: hidden;
}

/* Bordet: grafit, hård sidelys fra venstre, fin kornethed */
.ax-desk {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ax-surface {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -6%;
  height: 150%;
  transform-origin: 50% 100%;
  transform: perspective(var(--persp)) rotateX(calc((1 - var(--pc)) * 57deg));
  opacity: calc(1 - var(--pc) * 0.9);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
  background:
    linear-gradient(104deg, transparent 0 34%, rgba(255, 226, 190, 0.11) 41%, rgba(255, 226, 190, 0.02) 48%, transparent 56%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 72px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #202326, #17191b 70%);
}
.ax-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 90% at 4% 42%, rgba(255, 236, 214, 0.16), transparent 62%),
    radial-gradient(120% 95% at 62% 46%, transparent 45%, rgba(0, 0, 0, 0.62) 100%);
}
.ax-light::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: var(--pc);
  background: radial-gradient(55% 40% at 4% 6%, rgba(255, 236, 214, 0.1), transparent 70%);
}

/* Navn og tekst */
.ax-head {
  position: absolute;
  z-index: 8;
  left: var(--gut);
  top: calc((1 - var(--pc)) * 19svh + var(--pc) * 4.6rem);
  width: min(46rem, calc(100% - 2 * var(--gut)));
  pointer-events: none;
}
.ax-head a,
.ax-head button {
  pointer-events: auto;
}
.ax-kicker {
  margin: 0 0 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ax-name {
  margin: 0;
  font-family: var(--f-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: calc(var(--fs0) * (1 - var(--pc)) + var(--fs1) * var(--pc));
  line-height: 0.84;
  letter-spacing: -0.012em;
  color: var(--paper);
}
.ax-line {
  display: block;
  white-space: nowrap;
}
.ax-ch {
  display: inline-block;
  will-change: transform;
}
.ax-ch[data-c='Ø'] {
  margin-right: -0.05em;
}
.ax-ch[data-intro] {
  animation: ax-rise 0.9s var(--ease) backwards;
  animation-delay: calc(var(--i) * 34ms + 120ms);
}
@keyframes ax-rise {
  from {
    transform: translateY(0.38em);
    opacity: 0;
    filter: blur(6px);
  }
  to {
    transform: none;
    opacity: 1;
    filter: blur(0);
  }
}
.ax-lede {
  margin: 1.2rem 0 0;
  max-width: 28rem;
  font-size: calc(1.15rem - var(--pc) * 0.12rem);
  line-height: 1.5;
  color: var(--paper-2);
}
.ax-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.ax-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 600 0.98rem/1 var(--font-sans, 'IBM Plex Sans', sans-serif);
  text-decoration: none;
  color: var(--paper);
  background: rgba(13, 14, 15, 0.55);
  border: 1px solid #5a6167;
  border-radius: 3px;
  padding: 0.95rem 1.2rem;
  min-height: 2.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.ax-btn:hover {
  background: var(--g3);
  border-color: var(--paper);
  transform: translateY(-1px);
}
.ax-btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.ax-btn-primary:hover {
  background: #fff;
  border-color: #fff;
}

/* Fotoet på bordet */
.ax-photo {
  --hx: 60%;
  --hy: 50%;
  --hw: 24rem;
  --ex: 0px;
  --ey: 0px;
  --sc: 1;
  --roll: 0deg;
  position: absolute;
  z-index: 7;
  left: var(--hx);
  top: var(--hy);
  width: var(--hw);
  margin: calc(var(--hw) * -0.6175) 0 0 calc(var(--hw) * -0.5);
  transform: translate3d(var(--ex), var(--ey), 0) perspective(var(--persp))
    rotateX(calc((1 - var(--pc)) * 34deg)) rotateZ(calc((1 - var(--pc)) * -3.2deg + var(--roll))) scale(var(--sc));
  transform-origin: 50% 50%;
  cursor: grab;
  touch-action: pan-y; /* lodret scroll virker på selve fotoet; kun grebet fanger touch */
  user-select: none;
  -webkit-user-select: none;
}
.ax-photo[data-drag='true'] {
  cursor: grabbing;
}
.ax-photo[data-docked='true'] {
  visibility: hidden;
  pointer-events: none;
}
.ax-photo-in {
  position: relative;
  animation: ax-float 7s ease-in-out infinite;
}
.ax-photo[data-drag='true'] .ax-photo-in,
.ax-photo[data-busy='true'] .ax-photo-in {
  animation: none;
}
@keyframes ax-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(0.35deg);
  }
}
.ax-photo .ax-vis {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    calc(7px + var(--lift, 0) * 10px) calc(9px + var(--lift, 0) * 12px) 0 -1px rgba(0, 0, 0, 0.3),
    calc(22px + var(--lift, 0) * 20px) calc(30px + var(--lift, 0) * 26px) 40px rgba(0, 0, 0, 0.5),
    calc(50px + var(--lift, 0) * 30px) calc(70px + var(--lift, 0) * 40px) 90px rgba(0, 0, 0, 0.45);
}
.ax-grip {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -1.5rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.55rem 1.1rem 0.55rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--orange-ink);
  font: 700 0.95rem/1 var(--font-sans, 'IBM Plex Sans', sans-serif);
  white-space: nowrap;
  cursor: grab;
  touch-action: none; /* grebet fanger træk på touch */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
  opacity: calc(1 - var(--pc) * 2.2);
  animation: ax-nudge 2.6s ease-in-out infinite;
}
.ax-photo[data-drag='true'] .ax-grip,
.ax-photo[data-busy='true'] .ax-grip {
  animation: none;
  cursor: grabbing;
}
@keyframes ax-nudge {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(4px);
  }
}
.ax-grip svg {
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
  background: var(--ink);
  color: var(--orange);
  border-radius: 50%;
  padding: 0.3rem;
}
.ax-grip:focus-visible {
  outline-color: var(--paper);
  outline-offset: 4px;
}

/* ---------- Fotos og papirer (bruges både på bordet, væggen og i detaljevisningen) ---------- */
.ax-vis {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 2px;
  transform-origin: 0 0;
}
.ax-print {
  background: var(--paper);
  padding: 3%; /* procent = samme ramme ved enhver størrelse */
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    5px 7px 0 -1px rgba(0, 0, 0, 0.3),
    14px 20px 26px rgba(0, 0, 0, 0.45);
}
.ax-print img {
  display: block;
  width: 100%;
  height: auto;
  background: #222;
}
.ax-print::after {
  /* hårdt sidelys fra venstre over selve billedet */
  content: '';
  position: absolute;
  inset: 3%;
  pointer-events: none;
  background: linear-gradient(104deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 34%, rgba(0, 0, 0, 0.26) 100%);
}
.ax-tag {
  position: absolute;
  left: 5%;
  bottom: 5%;
  z-index: 2;
  max-width: 88%;
  padding: 0.28em 0.6em;
  background: rgba(13, 14, 15, 0.82);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.ax-tag:empty {
  display: none;
}
.ax-paper {
  container-type: inline-size;
  aspect-ratio: var(--ar);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-content: start;
  padding: 7%; /* procent, ikke cqw: cqw på elementet selv måler ud fra viewporten */
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    5px 7px 0 -1px rgba(0, 0, 0, 0.3),
    14px 20px 26px rgba(0, 0, 0, 0.45);
}
.ax-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(104deg, rgba(255, 255, 255, 0.16), transparent 36%, rgba(0, 0, 0, 0.18));
}
.ax-paper--light {
  background: var(--paper);
  color: var(--ink);
}
.ax-paper--dark {
  background: #25292d;
  color: var(--paper);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    5px 7px 0 -1px rgba(0, 0, 0, 0.35),
    14px 20px 26px rgba(0, 0, 0, 0.5);
}
.ax-p-kind {
  font-family: var(--f-mono);
  font-size: 4.4cqw;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1.3;
}
.ax-p-big {
  align-self: center;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 25cqw;
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.ax-p-big small {
  display: block;
  font-size: 0.34em;
  letter-spacing: 0.02em;
}
.ax-p-title {
  font-weight: 600;
  font-size: 6.4cqw;
  line-height: 1.16;
  margin-top: 2cqw;
}
.ax-p-foot {
  margin-top: 3cqw;
  font-family: var(--f-mono);
  font-size: 4.2cqw;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.65;
}
.ax-paper[data-big='result'] .ax-p-big {
  font-size: 46cqw;
}
.ax-paper[data-video='true'] .ax-p-big {
  font-size: 33cqw;
}
.ax-play {
  position: absolute;
  right: 7cqw;
  bottom: 7cqw;
  width: 20cqw;
  height: 20cqw;
  color: var(--paper);
}
.ax-d-slot .ax-paper[data-video='true'] .ax-play {
  width: 22cqw;
  height: 22cqw;
}
.ax-paper[data-live] {
  display: block;
  padding: 0;
}
.ax-paper[data-live]::before {
  display: none;
}
.ax-paper[data-live] .ax-video-frame {
  position: absolute;
  inset: 0;
  height: 100%;
}
.ax-video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  background: #000;
}

/* ---------- Væggen med de tre paneler ---------- */
.ax-wall {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: var(--hd);
  padding: 0 var(--gut) 5.5rem;
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}
.ax-panel {
  --q: 0;
  --dx: 0px;
  --dy: 0px;
  --dr: 0deg;
  --ds: 0.4;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 1.8vw, 1.6rem);
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.05), transparent 30%),
    var(--g2);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    8px 10px 0 -2px rgba(0, 0, 0, 0.35),
    26px 36px 60px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 50%;
  transform: translate3d(calc((1 - var(--q)) * var(--dx)), calc((1 - var(--q)) * var(--dy)), 0) perspective(var(--persp))
    rotateX(calc((1 - var(--q)) * 52deg)) rotateZ(calc((1 - var(--q)) * var(--dr)))
    scale(calc(var(--ds) + (1 - var(--ds)) * var(--q)));
  will-change: transform;
}
.ax-panel::after {
  /* mørkere, mens panelet ligger under fotoet */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #000;
  opacity: calc((1 - var(--q)) * 0.5);
  pointer-events: none;
}
.ax-stage[data-open='true'] .ax-panel {
  will-change: auto;
}
.ax-panel[data-id='konkurrence'] {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
}
.ax-panel[data-id='projekter'] {
  grid-column: 6 / span 7;
}
.ax-panel[data-id='medier'] {
  grid-column: 6 / span 7;
}
.ax-panel-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  scroll-margin-top: 5rem;
}
.ax-panel-nr {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.ax-panel-title {
  margin: 0;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0;
}
.ax-panel-blurb {
  margin: 0 0 0 auto;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}
.ax-board {
  position: relative;
}
.ax-board[data-board='konkurrence'] {
  aspect-ratio: 520 / 740;
}
.ax-board[data-board='projekter'] {
  aspect-ratio: 730 / 440;
}
.ax-board[data-board='medier'] {
  aspect-ratio: 730 / 520;
}
.ax-piece {
  position: absolute;
  left: calc(var(--l) * 1%);
  top: calc(var(--t) * 1%);
  width: calc(var(--w) * 1%);
  z-index: var(--z);
  transform: rotate(calc(var(--r) * 1deg));
  list-style: none;
}
.ax-piece-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ax-piece-btn .ax-vis {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ax-piece-btn:hover .ax-vis,
.ax-piece-btn:focus-visible .ax-vis {
  transform: translateY(-6px) rotate(0.5deg);
}
.ax-piece-btn:focus-visible {
  outline-offset: 6px;
}
.ax-piece.is-lifted .ax-vis {
  visibility: hidden;
}
.ax-piece.is-lifted .ax-piece-btn {
  outline: 1px dashed rgba(236, 235, 227, 0.35);
  outline-offset: 3px;
}
.ax-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.2rem;
  margin: 1.3rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.ax-facts div {
  min-width: 0;
}
.ax-facts dt {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ax-facts dd {
  margin: 0;
  font-weight: 500;
}
.ax-panel[data-id='konkurrence'] .ax-facts {
  margin-top: auto;
}

/* ---------- Sektionerne under væggen: foldede sider fra samme udstilling ---------- */
.ax-after {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(60% 30% at 6% 8%, rgba(255, 236, 214, 0.07), transparent 70%),
    linear-gradient(180deg, var(--g1), var(--g0) 92%);
}
.ax-sec {
  padding: clamp(1.4rem, 4vw, 3.2rem) var(--gut);
  scroll-margin-top: 3.5rem;
}
.ax-page {
  --ink2: #34373a;
  --inkmute: #595c5f;
  position: relative;
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(1.3rem, 4vw, 3.6rem);
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  transform-origin: 50% 0;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.95s var(--ease), opacity 0.7s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    9px 11px 0 -2px rgba(0, 0, 0, 0.32),
    32px 46px 70px rgba(0, 0, 0, 0.55);
}
.ax-page[data-fold='pending'] {
  opacity: 0;
  transform: perspective(1700px) rotateX(15deg) translateY(56px) rotate(var(--tilt, 0deg));
}
.ax-page::before {
  /* foldekant, som på et brevark */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(to bottom, transparent calc(33% - 30px), rgba(0, 0, 0, 0.07) calc(33% - 2px), rgba(255, 255, 255, 0.45) 33%, transparent calc(33% + 40px)),
    linear-gradient(104deg, rgba(255, 255, 255, 0.4), transparent 28%, rgba(0, 0, 0, 0.07));
}
.ax-page > * {
  position: relative;
}
.ax-page :focus-visible {
  outline-color: var(--ink);
}
.ax-page-head {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 clamp(1.4rem, 3vw, 2.4rem);
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--ink);
}
.ax-page-nr {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inkmute);
}
.ax-page-nr--light {
  color: var(--muted);
}
.ax-page h2 {
  margin: 0;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.ax-page p {
  max-width: 44rem;
  margin: 0 0 1rem;
  color: var(--ink2);
}
.ax-page .ax-lead {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
}
.ax-muted {
  color: var(--inkmute) !important;
  font-size: 0.93rem;
}
.ax-kicker-ink {
  margin: 0 0 0.4rem !important;
  font-family: var(--f-mono);
  font-size: 0.75rem !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--inkmute) !important;
}
.ax-h3 {
  margin: 2.6rem 0 1.1rem;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 1.9rem;
  text-transform: uppercase;
}
.ax-case-title {
  margin: 0 0 1rem;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.92;
  text-transform: uppercase;
}
.ax-case {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.ax-case--flip {
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
}
.ax-case--flip .ax-collage {
  order: 2;
}
.ax-collage {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ax-facts--ink {
  margin: 0 0 1.6rem;
  padding: 0 0 1rem;
  border-top: 0;
  border-bottom: 1px solid #b9b7ab;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}
.ax-facts--ink dt {
  color: var(--inkmute);
}
.ax-quote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 4px solid var(--ink);
}
.ax-quote p {
  margin: 0 0 0.4rem;
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  color: var(--ink);
}
.ax-quote footer {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inkmute);
}
.ax-actions--ink {
  margin-top: 1.6rem;
}
.ax-page .ax-btn {
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
}
.ax-page .ax-btn:hover {
  background: #fff;
  border-color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 5px 6px 0 var(--ink);
}
.ax-page .ax-btn:active {
  transform: translate(2px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.ax-page .ax-btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.ax-page .ax-btn-primary:hover {
  background: #000;
  color: #fff;
}
.ax-btn:active {
  transform: translateY(1px);
}
.ax-minicase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid #b9b7ab;
}
.ax-minicase-text {
  max-width: 44rem;
}
.ax-minicase p:last-child {
  margin-bottom: 0;
}

/* Medierækker */
.ax-rows {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 3px solid var(--ink);
}
.ax-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid #b9b7ab;
}
.ax-row-vis {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.ax-row-vis .ax-vis {
  transition: transform 0.3s var(--ease);
}
.ax-row-vis:hover .ax-vis,
.ax-row-vis:focus-visible .ax-vis {
  transform: rotate(-1.5deg) translateY(-3px);
}
.ax-row.is-lifted .ax-vis {
  visibility: hidden;
}
.ax-row-type {
  margin: 0 0 0.2rem !important;
  font-family: var(--f-mono);
  font-size: 0.74rem !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--inkmute) !important;
}
.ax-row h3 {
  margin: 0 0 0.3rem;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}
.ax-row-body p:last-child {
  margin-bottom: 0;
}
.ax-row-act {
  display: grid;
  gap: 0.6rem;
  min-width: 13rem;
}
.ax-row-act .ax-btn {
  justify-content: space-between;
}

/* Om mig, oplæg */
.ax-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  gap: 2rem 3rem;
  align-items: start;
}
.ax-about-pic {
  order: 2;
}
.ax-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ax-card {
  position: relative;
  padding: 1.1rem 1.1rem 1.2rem;
  background: #f7f6ef;
  border: 1px solid #c8c6ba;
  box-shadow: 4px 5px 0 -1px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s var(--ease);
}
.ax-card:nth-child(odd) {
  transform: rotate(-0.5deg);
}
.ax-card:nth-child(even) {
  transform: rotate(0.4deg);
}
.ax-card:hover {
  transform: rotate(0) translateY(-3px);
}
.ax-card-nr {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--inkmute);
}
.ax-card h4 {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
}
.ax-page .ax-card p {
  margin: 0;
  font-size: 0.96rem;
}
.ax-stamp {
  margin: 2.6rem 0 0;
  padding: 1.2rem 1.4rem;
  max-width: 44rem;
  border: 3px double var(--ink);
  transform: rotate(-0.6deg);
}
.ax-stamp strong {
  font-family: var(--f-mono);
  font-weight: 500;
}
.ax-stamp p {
  margin: 0.5rem 0 0 !important;
}
.ax-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ax-chips li {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-weight: 500;
}
.ax-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 3px solid var(--ink);
}
.ax-cta-row p {
  margin: 0 !important;
  max-width: 38rem;
}

/* Afslutningen: samme udstilling, nu som mørk bagside */
.ax-sec--end {
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.ax-end {
  max-width: 78rem;
  margin: 0 auto;
}
.ax-end-name {
  margin: 0.4rem 0 1.4rem;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: clamp(3.6rem, 15.5vw, 15rem);
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  color: var(--paper);
}
.ax-end-lead {
  max-width: 38rem;
  font-size: 1.2rem;
  color: var(--paper-2);
}
.ax-mail {
  display: inline-block;
  margin: 0.6rem 0 1.8rem;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 4.2rem);
  line-height: 1;
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 4px solid var(--line);
  overflow-wrap: anywhere;
  transition: border-color 0.2s;
}
.ax-mail:hover {
  border-bottom-color: var(--paper);
}
.ax-end-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 2rem;
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
}
.ax-end-links a {
  display: inline-block;
  padding: 0.5rem 0;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
}
.ax-end-links a:hover {
  text-decoration-color: var(--paper);
}
.ax-note {
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.ax-textlink {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ax-wall-end {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 0.6rem;
}
.ax-footer {
  border-top: 1px solid #23272a;
  padding: 2rem var(--gut) 2.4rem;
  background: var(--g0);
  color: var(--muted);
  font-size: 0.9rem;
}
.ax-footer-in {
  max-width: 78rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  align-items: baseline;
}
.ax-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.4rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.ax-footer a,
.ax-footer button {
  display: inline-block;
  color: var(--paper-2);
  font: inherit;
  background: none;
  border: 0;
  padding: 0.55rem 0;
  min-height: 2.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ax-footer a:hover,
.ax-footer button:hover {
  color: #fff;
}
.ax-footer p {
  margin: 0;
}
@media (max-width: 959px) {
  .ax-case,
  .ax-case--flip,
  .ax-about {
    grid-template-columns: minmax(0, 1fr);
  }
  .ax-case--flip .ax-collage,
  .ax-about-pic {
    order: 0;
  }
  .ax-collage {
    max-width: 30rem;
    width: 100%;
  }
  .ax-about-pic {
    max-width: 14rem;
  }
  .ax-row {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }
  .ax-row-act {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    min-width: 0;
  }
}

/* ---------- Detaljevisning ---------- */
.ax-detail {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.ax-detail[hidden] {
  display: none;
}
.ax-d-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 10, 0.78);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.ax-detail[data-state='open'] .ax-d-scrim {
  opacity: 1;
}
.ax-d-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(31rem, 44vw);
  pointer-events: none;
}
.ax-d-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4.5rem 2rem 2rem;
  pointer-events: auto;
  min-width: 0;
}
.ax-d-slot {
  width: 100%;
  display: flex;
  justify-content: center;
}
.ax-d-slot .ax-vis {
  width: min(100%, calc(74svh / var(--hr)));
  will-change: transform;
}
.ax-d-slot .ax-print,
.ax-d-slot .ax-paper {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    10px 14px 0 -2px rgba(0, 0, 0, 0.3),
    30px 44px 60px rgba(0, 0, 0, 0.6);
}
.ax-d-thumbs {
  display: flex;
  gap: 0.6rem;
}
.ax-d-thumbs:empty {
  display: none;
}
.ax-thumb {
  width: 4.4rem;
  padding: 0.2rem;
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.ax-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.ax-thumb:hover,
.ax-thumb[aria-pressed='true'] {
  opacity: 1;
  transform: translateY(-2px);
}
.ax-thumb[aria-pressed='true'] {
  border-color: var(--paper);
  outline: 2px solid var(--g0);
}
.ax-d-side {
  position: relative;
  pointer-events: auto;
  overflow-y: auto;
  padding: 4.5rem 2rem 2.5rem;
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.05), transparent 25%),
    var(--g2);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(105%);
  transition: transform 0.5s var(--ease);
}
.ax-detail[data-state='open'] .ax-d-side {
  transform: none;
}
.ax-d-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #5a6167;
  border-radius: 3px;
  background: rgba(13, 14, 15, 0.8);
  color: var(--paper);
  font: 600 0.95rem/1 var(--font-sans, 'IBM Plex Sans', sans-serif);
  cursor: pointer;
}
.ax-d-close:hover {
  background: var(--g3);
  border-color: var(--paper);
}
.ax-d-close kbd {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  opacity: 0.65;
}
.ax-d-kicker {
  margin: 0 0 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ax-d-title {
  margin: 0 0 1.2rem;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.ax-d-side .ax-facts {
  margin: 0 0 1.4rem;
  padding: 0 0 1rem;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.ax-d-side p {
  margin: 0 0 1rem;
  color: var(--paper-2);
}
.ax-d-links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.ax-d-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-weight: 500;
}
.ax-d-links a:hover span:first-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ax-d-links a span:last-child {
  color: var(--muted);
}
.ax-d-note {
  font-size: 0.85rem !important;
  color: var(--muted) !important;
}
@media (max-width: 959px) {
  .ax-d-grid {
    display: block;
    overflow-y: auto;
    pointer-events: auto;
    overscroll-behavior: contain;
  }
  .ax-d-stage {
    padding: 4.2rem 1.2rem 1.4rem;
    min-height: 54svh;
  }
  .ax-d-slot .ax-vis {
    width: min(100%, calc(46svh / var(--hr)));
  }
  .ax-d-side {
    padding: 1.6rem 1.2rem 3rem;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.4s;
    border-left: 0;
    border-top: 1px solid var(--line);
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.5);
    overflow: visible;
  }
  .ax-detail[data-state='open'] .ax-d-side {
    opacity: 1;
  }
}

/* ---------- Mobil og tablet ---------- */
@media (max-width: 959px) {
  .ax-stage {
    --h0: max(100svh, 47rem);
    --fs0: clamp(4rem, 22vw, 9rem);
    --fs1: clamp(2.9rem, 13vw, 5rem);
    --hd: calc(4.6rem + 1.68 * var(--fs1) + 15.5rem);
  }
  .ax-head {
    top: calc((1 - var(--pc)) * 5.4rem + var(--pc) * 4.6rem);
  }
  .ax-wall {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }
  .ax-panel[data-id] {
    grid-column: 1;
    grid-row: auto;
  }
  .ax-panel-blurb {
    display: none;
  }
  .ax-facts {
    margin-top: 1.2rem !important;
  }
  /* i to kolonner, så billederne er store nok til at trykke på */
  .ax-board {
    aspect-ratio: auto !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 0.9rem;
    align-items: start;
  }
  .ax-board .ax-piece {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    grid-column: span 1;
  }
  .ax-board .ax-piece[data-lead='true'] {
    grid-column: 1 / span 2;
    width: 78%;
  }
  .ax-board[data-board='konkurrence'] .ax-piece:nth-child(2) {
    grid-column: 1 / span 2;
    width: 78%;
    margin-left: auto;
    margin-top: -2rem;
  }
  .ax-board .ax-piece[data-wide='true'] {
    grid-column: 1 / span 2;
  }
  .ax-board .ax-piece[data-tall='true'] {
    grid-column: 2;
    grid-row: span 2;
    width: 64%;
    justify-self: end;
  }
}
@media (min-width: 960px) and (max-width: 1180px) {
  .ax-panel-blurb {
    display: none;
  }
}
@media (max-width: 719px) {
  .ax-footer ul {
    margin-left: 0;
  }
}

/* ---------- Reduceret bevægelse ---------- */
@media (prefers-reduced-motion: reduce) {
  .ax-photo-in,
  .ax-grip,
  .ax-ch[data-intro] {
    animation: none !important;
  }
  .ax-piece-btn .ax-vis,
  .ax-d-scrim,
  .ax-d-side,
  .ax-page,
  .ax-card,
  .ax-btn,
  .ax-map button {
    transition: none !important;
  }
}

/* Link-knapper: body.ax a { color: inherit } må ikke slå knappernes farver ud */
body.ax a.ax-btn {
  color: var(--paper);
}
body.ax a.ax-btn-primary {
  color: var(--ink);
}
body.ax .ax-page a.ax-btn {
  color: var(--ink);
}
body.ax .ax-page a.ax-btn-primary {
  color: var(--paper);
}
body.ax .ax-page a.ax-btn-primary:hover {
  color: #fff;
}
.ax-btn:focus-visible {
  outline-offset: 4px;
}
