/* Fixed content width on large screens. Backgrounds remain full-bleed, while the actual page content stays readable instead of stretching across ultrawide displays. */
:root {
  --content: 1200px;
  --content-wide: 1680px;
  --bg: #f6f2f7;
  --ink: #202020;
  --blue: #4b7dfe;
  --pink: #e285ac;
  --bio: #394251;
  --pad: clamp(24px, 10.42vw, 200px);
  --display: 'Clash Display', 'Sora', system-ui, sans-serif;
  --body: 'Sora', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --cine-ease: cubic-bezier(.22, 1, .36, 1);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

/* ========================================================= CONTENT WIDTH ========================================================= */
header,
.hero,
.about,
.work,
footer {
  padding-left: max(24px, calc((100vw - var(--content)) / 2));
  padding-right: max(24px, calc((100vw - var(--content)) / 2));
}

.hero-c,
.about>*,
.work>.wi,
.work>.row,
footer>.cta,
footer>.fd,
footer>.copy {
  width: 100%;
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
}

/* Keeps the bio text and tags flush with the left boundary */
.about>.bio {
  margin-left: 0;
  margin-right: auto;
}

/* Expanded layout on wide screens */
@media (min-width: 1440px) {

  header,
  .hero,
  .about,
  .work,
  footer {
    padding-left: max(32px, calc((100vw - var(--content-wide)) / 2));
    padding-right: max(32px, calc((100vw - var(--content-wide)) / 2));
  }

  .hero-c,
  .about>*,
  .work>.wi,
  .work>.row,
  footer>.cta,
  footer>.fd,
  footer>.copy {
    max-width: var(--content-wide);
  }
}

/* ========================================================= BASE ========================================================= */
body {
  font: 500 16px/1.6 var(--body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html,
body,
button,
input,
textarea,
select {
  font-family: var(--body);
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ========================================================= TYPE ========================================================= */
.d {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 2.08vw + 8px, 40px);
  line-height: 1.35;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

h1,
h2,
h3,
.d,
.cta-h,
.ghost {
  font-family: 'Clash Display', sans-serif;
}

/* ========================================================= REVEAL ANIMATIONS ========================================================= */
.rv {
  opacity: 0;
  transform: translate3d(0, var(--y, 40px), 0) scale(var(--s, 1));
  transition: opacity 1s var(--cine-ease), transform 1.15s var(--cine-ease), filter 1s var(--cine-ease);
  will-change: transform, opacity, filter;
}

.rv:not(.in) {
  filter: blur(4px);
}

.rv.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.clip {
  overflow: hidden;
  display: block;
  transition: clip-path 1.2s var(--cine-ease), opacity 1s var(--cine-ease);
}

.clip>span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.3s var(--ease) var(--dl, 0s);
}

.in .clip>span,
.clip.in>span {
  transform: none;
}

.rv,
.clip,
.cta {
  will-change: transform, opacity, filter;
}

/* ========================================================= HEADER ========================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: calc(30px + env(safe-area-inset-top, 0px));
  padding-bottom: 30px;
  transition: transform .6s var(--ease), background-color .45s var(--ease), padding .45s var(--ease), box-shadow .45s var(--ease);
}

header.is-stuck {
  background: rgba(246, 242, 247, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(32, 32, 32, .08);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  padding-bottom: 14px;
}

header.is-hidden {
  transform: translate3d(0, -110%, 0);
  box-shadow: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: clamp(38px, 2.6vw, 40px);
  width: auto;
  display: block;
  transition: height .45s var(--ease);
}

header.is-stuck .logo-img {
  height: clamp(26px, 2.1vw, 32px);
}

footer .logo-img {
  filter: invert(1) brightness(110%);
}

.logo-svg {
  height: 32px;
  width: auto;
  display: block;
  color: var(--ink);
}

footer .logo-svg {
  height: 30px;
  width: auto;
  display: block;
  color: #fff;
}

/* ========================================================= NAVIGATION ========================================================= */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  max-width: 600px;
  margin-left: 24px;
}

nav a {
  opacity: .75;
  transition: opacity .3s;
}

nav a:first-child {
  opacity: 1;
}

nav a:hover {
  opacity: 1;
}

/* CTA buttons — consistent bold weight */
.btn,
.btn-o,
.btn-b,
.btn-l,
.case-cta,
.sv-cta,
.cta {
  font-weight: 700 !important;
}

/* ========================================================= BUTTONS ========================================================= */
.btn-o {
  border: 2px solid var(--ink);
  border-radius: 2.5px;
  padding: 10px 50px;
  transition: background .4s var(--ease), color .4s var(--ease);
}

.btn {
  border-radius: 8px;
  padding: 10px 50px;
  font-weight: 700;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  border: 2px solid #1e1e1e;
  transition: transform .5s var(--ease);
  --hv: var(--ink);
  --hc: var(--bg);
}

.btn.f {
  background: #1e1e1e;
  color: #fdfdfd;
  padding: 10px 80px;
  --hv: var(--blue);
  --hc: #fff;
}

.btn-b {
  background: var(--blue);
  padding: 10px 50px;
  border-radius: 2.5px;
  transition: transform .5s var(--ease);
  --hv: #fff;
  --hc: var(--blue);
}

.btn-l {
  background: var(--bg);
  color: var(--blue);
  padding: 10px 50px;
  border-radius: 2.5px;
  transition: transform .5s var(--ease);
  --hv: var(--blue);
  --hc: #fff;
}

/* ========================================================= HERO ========================================================= */
.hero {
  position: relative;
  background: var(--bg);
  min-height: max(106vh, 740px);
  min-height: max(106svh, 740px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(150px, 11.7vw, 225px);
  padding-bottom: clamp(150px, 11.7vw, 225px);
  text-align: center;
  overflow: hidden;
  --bgc: var(--bg);
}

.hero-c {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  position: relative;
}

.eyebrow {
  color: rgba(34, 51, 59, .5);
  margin-bottom: 14px;
}

.phrase {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.pill {
  display: inline-block;
  padding: 10px clamp(24px, 3.4vw, 65px);
  border-radius: 2000px;
  color: var(--bg);
  overflow: hidden !important;
}

/* ========================================================= HERO PILL ========================================================= */
.phrase .pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(115deg, #4f52d4 0%, #6842b8 28%, #2b88d8 55%, #b34a98 78%, #4f52d4 100%);
  background-size: 240% 240%;
  animation: solutionGradient 11s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 6px 20px rgba(50, 65, 180, .12);
}

.phrase .pill::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: radial-gradient(circle at 35% 50%, rgba(255, 255, 255, .25), transparent 22%), radial-gradient(circle at 70% 35%, rgba(255, 255, 255, .12), transparent 26%);
  filter: blur(20px);
  opacity: .3;
  animation: solutionGlow 8s ease-in-out infinite;
}

.phrase .pill::after {
  content: "";
  position: absolute;
  top: -80%;
  bottom: -80%;
  left: -30%;
  width: 20%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transform: translateX(-160%) rotate(18deg);
  animation: solutionSweep 6s var(--cine-ease) infinite;
}

@keyframes solutionGradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes solutionGlow {

  0%,
  100% {
    transform: translate3d(-5%, 0, 0) scale(.95);
    opacity: .2;
  }

  50% {
    transform: translate3d(6%, -2%, 0) scale(1.04);
    opacity: .35;
  }
}

@keyframes solutionSweep {

  0%,
  58% {
    transform: translateX(-160%) rotate(18deg);
    opacity: 0;
  }

  66% {
    opacity: 1;
  }

  82%,
  100% {
    transform: translateX(650%) rotate(18deg);
    opacity: 0;
  }
}

@media (hover: hover) {
  .phrase .pill {
    transition: transform .7s var(--cine-ease), box-shadow .7s var(--cine-ease);
  }

  .phrase .pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(50, 65, 180, .18), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  }
}

/* ========================================================= HERO CONTENT ========================================================= */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 25px;
}

.badge {
  border: 1px solid #000;
  border-radius: 25px;
  padding: 5px 25px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .48px;
  text-transform: uppercase;
}

.badge b {
  font-weight: 600;
}

.lead {
  max-width: 644px;
  color: #22333b;
  margin-top: 30px;
}

.acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Cinematic hero settle */
.hero-c>* {
  animation: cineSettle 1.25s var(--cine-ease) both;
}

.hero-c>*:nth-child(2) {
  animation-delay: .08s;
}

.hero-c>*:nth-child(3) {
  animation-delay: .16s;
}

.hero-c>*:nth-child(4) {
  animation-delay: .24s;
}

@keyframes cineSettle {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ========================================================= IMAGE / MEDIA SLOTS ========================================================= */
.ph {
  position: relative;
  overflow: hidden;
  background: #2d2d2d;
  border-radius: 12px;
}

.ph-in {
  position: absolute;
  inset: -12% 0;
  background: var(--img, none) center / cover no-repeat;
  will-change: transform;
}

/* ========================================================= ABOUT ========================================================= */
.about {
  position: relative;
  background: #fff;
  padding-top: clamp(100px, 10.4vw, 200px);
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  overflow: hidden;
  --bgc: #fff;
}

.banner {
  height: clamp(340px, 35vw, 660px);
  border-radius: 25px;
  background: #d9d9de;
}

/* ========================================================= ABOUT VIDEO ========================================================= */
.about .banner .ph-in {
  inset: 0;
  overflow: hidden;
  background: none;
}

.about .banner .ph-in video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  margin: 0;
  padding: 0;
  border: 0;
}

/* ========================================================= ABOUT BIO ========================================================= */
.bio {
  max-width: 884px;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.bio p {
  color: var(--bio);
  margin-bottom: 1.6em;
}

.bio p:last-child {
  margin: 0;
}

.w {
  transition: none;
}

.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tag {
  border: 2px solid var(--ink);
  border-radius: 25px;
  padding: 5px 25px;
  opacity: .65;
  background: rgba(255, 255, 255, .9);
}

.soc {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.soc a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform .5s var(--ease), background .4s var(--ease);
}

.soc a:hover {
  transform: translateY(-3px);
}

.soc svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
}

/* ========================================================= WORK ========================================================= */
.work {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-top: 150px;
  padding-bottom: 150px;
  overflow: hidden;
}

.ghost {
  position: absolute;
  right: -2%;
  top: 150px;
  font: 700 clamp(160px, 22vw, 425px) / 1 var(--body);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  letter-spacing: 0;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.wi {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.wi .k {
  color: var(--pink);
}

.wi h2 {
  max-width: 557px;
  margin-top: 10px;
}

.work > .row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.card {
  padding: 25px;
}

.card.o {
  padding-top: 25px;
}

.card .ph {
  aspect-ratio: 1 / 1;
}

/* ========================================================= CASE LINKS ========================================================= */
.case-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .45s var(--ease);
  will-change: transform;
}

@media (hover: hover) {
  .case-link:hover {
    transform: scale(1.03);
  }
}

.case-link .ph {
  position: relative;
}

.case-link .ph-in {
  transition: filter .45s var(--ease), transform 1.1s var(--cine-ease);
}

.case-link:hover .ph-in {
  filter: brightness(1.15) saturate(1.05);
}

.case-link .ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .35) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.case-link:hover .ph::after {
  opacity: 1;
}

.case-cta {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .94);
  color: #111827;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .5px;
  text-transform: capitalize;
  border-radius: 2000px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .36), 0 0 0 1px rgba(255, 255, 255, .45) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  will-change: transform, opacity;
  opacity: 0;
  transform: translate3d(var(--x, 50%), var(--y, 50%), 0) scale(.7);
  transition: opacity .25s var(--ease), transform .25s cubic-bezier(.16, 1, .3, 1);
}

.case-link.is-hovered .case-cta {
  opacity: 1;
  transform: translate3d(var(--x, 50%), var(--y, 50%), 0) scale(1);
}

.case-cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease);
}

.case-link:hover .case-cta svg {
  transform: translate3d(3px, -3px, 0);
}

/* ========================================================= CASE DETAILS ========================================================= */
.det {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0 6px;
}

.det .t h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
  transition: color .3s var(--ease);
}

.case-link:not(.is-soon):hover .det .t h3 {
  color: #fff;
  font-weight: 800;
}

.det .t .sub {
  display: block;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.card-desc {
  color: rgba(255, 255, 255, .68);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 8px 0 14px;
  max-width: 520px;
}

.yr {
  opacity: .75;
  font-weight: 600;
  font-size: 14px;
  padding-top: 2px;
}

.met {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.met span {
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 2000px;
  padding: 4px 20px;
  font-size: 12.5px;
  letter-spacing: .3px;
  white-space: nowrap;
  color: rgba(255, 255, 255, .9);
}

/* ========================================================= FOOTER ========================================================= */
footer {
  position: relative;
  background: #0b1220;
  color: #fff;
  padding-top: clamp(64px, 7vw, 112px);
  padding-bottom: calc(clamp(64px, 7vw, 112px) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: hidden;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 0;
  padding: 50px 0;
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.7s var(--ease);
}

.cta::before {
  top: 0;
}

.cta::after {
  bottom: 0;
  transform-origin: right;
  transition-delay: .35s;
}

.cta.in::before,
.cta.in::after {
  transform: none;
}

.cta em {
  font-style: normal;
  color: var(--blue);
}

/* Størrelse, linjehøjde og letter-spacing arves fra .d, så den er ens med alle andre overskrifter */
.cta-h {
  margin: 0;
}

.mk {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

.mk>span {
  position: relative;
  display: inline-block;
  transform: translateY(118%) rotate(7deg);
  transform-origin: left bottom;
  transition: transform 1.5s var(--ease) calc(.3s + var(--i) * .11s);
}

.cta.in .mk>span {
  transform: none;
}

.mk.em {
  color: var(--blue);
}

.mk.em>span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: .04em;
  height: .07em;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 1.25s;
}

.cta.in .mk.em>span::after {
  transform: none;
}

.btn-l {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 1s var(--ease) 1s, transform 1.2s var(--ease) 1s, color .4s var(--ease);
}

.cta.in .btn-l {
  opacity: 1;
  transform: none;
}

.fd {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr 1fr;
  gap: 50px;
  padding-top: 10px;
  max-width: 1244px;
}

.fd .soc a {
  width: 44px;
}
.footer-soc {
  margin-top: 14px;
}


.fd h4 {
  font-weight: 600;
  margin-bottom: 20px;
}

.fd p {
  margin-bottom: 5px;
  font-weight: 300;
}

.copy {
  color: #a6a6a6;
  margin-top: 26px;
}

/* ========================================================= BUTTON / CTA HOVER ========================================================= */
.hv {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hv::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hv);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateY(102%);
  transition: transform .65s var(--ease), border-radius .65s var(--ease);
}

.bt {
  display: block;
  overflow: hidden;
  line-height: 1.4;
}

.bt>span {
  display: block;
  position: relative;
  transition: transform .6s var(--ease);
}

.bt>span::after {
  content: attr(data-t);
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  white-space: nowrap;
}

.hv {
  transition: color .4s var(--ease), border-color .4s var(--ease);
}

.btn-l.hv {
  transition: opacity 1s var(--ease) 1s, transform 1.2s var(--ease) 1s, color .4s var(--ease);
}

@media (hover: hover) {
  .hv:hover {
    color: var(--hc);
  }

  .hv:hover::before {
    transform: translateY(0);
    border-radius: 0;
  }

  .hv:hover .bt>span {
    transform: translateY(-100%);
  }

  .btn.f:hover {
    border-color: var(--blue);
  }

  .soc a {
    transition: transform .5s var(--ease), background .4s var(--ease);
  }

  .soc a:hover {
    background: var(--blue);
  }
}

/* ========================================================= CINEMATIC LAYER ========================================================= */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9990;
  pointer-events: none;
  opacity: .035;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: cineNoise .18s steps(2) infinite;
  transform: translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9989;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, .10) 100%);
  opacity: .55;
}

@keyframes cineNoise {
  0% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(2%, -1%, 0);
  }

  50% {
    transform: translate3d(-1%, 2%, 0);
  }

  75% {
    transform: translate3d(1%, 1%, 0);
  }

  100% {
    transform: translate3d(-2%, -1%, 0);
  }
}

/* ========================================================= LOADER ========================================================= */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

#loader .L {
  position: absolute;
  inset: 0;
  display: flex;
}

#loader .L i {
  flex: 1;
  height: 100%;
  transform: translateY(100%);
  transition: transform .9s cubic-bezier(.76, 0, .24, 1) calc(var(--d, 0s) + var(--e, 0s));
}

#loader .k i {
  background: #fff;
}

#loader.go .L i {
  transform: translateY(0);
}

#loader.out .L i {
  transform: translateY(-100%);
  transition-duration: 1s;
  transition-delay: calc(var(--o, 0s) + var(--x, 0s));
}

html.ld-on,
html.ld-on body {
  overflow: hidden !important;
  height: 100%;
  overscroll-behavior: none;
  touch-action: none;
}

/* ========================================================= TABLET ========================================================= */
@media (max-width: 900px) {
  nav a:not(.btn-o) {
    display: none;
  }

  nav {
    justify-content: flex-end;
  }

  .btn-o {
    padding: 8px 24px;
  }

  .hero {
    padding-top: 140px;
    padding-bottom: 140px;
  }

  .btn,
  .btn.f {
    padding: 10px 36px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card.o {
    padding-top: 25px;
  }

  .fd {
    grid-template-columns: 1fr 1fr;
  }

  .met span {
    padding: 4px 14px;
  }
}

/* ========================================================= MOBILE ========================================================= */
@media (max-width: 700px) {
  :root {
    --pad: 20px;
  }

  header,
  .hero,
  .about,
  .work,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  body {
    font-size: 15px;
  }

  header {
    padding: calc(18px + env(safe-area-inset-top, 0px)) var(--pad) 18px;
  }

  header.is-stuck {
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
  }

  .logo-svg {
    height: 26px;
  }

  footer .logo-svg {
    height: 24px;
  }

  nav {
    flex: 0 0 auto;
    margin: 0;
  }

  .btn-o {
    padding: 8px 20px;
  }

  .hero {
    padding: 124px var(--pad) 96px;
    min-height: max(112svh, 720px);
  }

  .hero-c {
    gap: 44px;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .d {
    font-size: clamp(24px, 7.2vw, 32px);
    letter-spacing: .8px;
    line-height: 1.3;
  }

  .phrase {
    gap: 10px 12px;
  }

  .pill {
    padding: 4px 20px;
  }

  .badges {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
  }

  .badge {
    font-size: 12.5px;
    padding: 5px 18px;
    text-align: center;
  }

  .lead {
    margin-top: 28px;
    font-size: 15px;
  }

  .acts {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn,
  .btn.f {
    width: 100%;
    justify-content: center;
    padding: 10px 24px;
  }

  /* ABOUT MOBILE */
  .about {
    padding: 64px var(--pad) 56px;
    gap: 28px;
  }

  .banner {
    height: 58vw;
    min-height: 220px;
    border-radius: 18px;
  }

  /* Keep video perfectly centered and covering the mobile frame */
  .about .banner .ph-in {
    inset: 0;
  }

  .about .banner .ph-in video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .bio {
    padding: 12px 0 0;
    gap: 20px;
  }

  .bio p {
    margin-bottom: 1.2em;
  }

  .tag {
    padding: 4px 18px;
    font-size: 14px;
  }

  /* WORK MOBILE */
  .work {
    padding: 122px var(--pad) 114px;
  }

  .ghost {
    top: 90px;
    font-size: 38vw;
    right: -6%;
  }

  .wi {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }

  .btn-b {
    padding: 10px 32px;
  }

  .row {
    display: block;
  }

  .card,
  .card.o {
    padding: 0 0 44px;
  }

  .det {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0 0;
  }

  .yr {
    flex-shrink: 0;
  }

  .met {
    gap: 6px;
  }

  .met span {
    padding: 4px 14px;
    font-size: 12px;
    white-space: normal;
  }

  .case-cta {
    top: auto;
    left: auto;
    bottom: 16px;
    right: 16px;
    padding: 9px 16px;
    font-size: 12px;
    opacity: 1;
    transform: none !important;
  }

  /* FOOTER MOBILE */
  footer {
    padding: 88px var(--pad) calc(60px + env(safe-area-inset-bottom, 0px));
    gap: 28px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 0;
  }

  .btn-l {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    transform: translateY(20px);
  }

  .cta.in .btn-l {
    transform: none;
  }

  .fd {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-top: 0;
  }

  .fd>div:nth-child(1),
  .fd>div:nth-child(2) {
    grid-column: 1 / -1;
  }

  .fd h4 {
    margin-bottom: 10px;
  }

  .copy {
    margin-top: 4px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .d {
    font-size: 23px;
  }

  .badge {
    font-size: 12px;
  }
}

/* ========================================================= SECTION FADES ========================================================= */
.hero::after,
.about::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bgc);
  opacity: var(--fade, 0);
  pointer-events: none;
  z-index: 4;
}

/* ========================================================= REDUCED MOTION ========================================================= */
@media (prefers-reduced-motion: reduce) {
  header {
    transition: none;
  }

  .rv {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .clip>span {
    transform: none;
    transition: none;
  }

  body::before {
    animation: none;
  }

  body::after {
    opacity: .3;
  }

  .hero-c>* {
    animation: none;
  }

  img {
    transition: none;
  }

  .mk>span,
  .btn-l {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .cta::before,
  .cta::after {
    transform: none;
  }

  .phrase .pill {
    animation: none;
    background-position: 50% 50%;
  }

  .phrase .pill::before,
  .phrase .pill::after {
    animation: none;
  }
}

/* ========================================================= FOOTER CTA ANIMATION ========================================================= */
@media (max-width: 700px) {
  .btn-l {
    transform: translateY(20px);
  }
}

/* ========================================================= FINAL ABOUT VIDEO OVERRIDE ========================================================= */
/* The global .ph-in uses a negative top/bottom inset for parallax case images. The About video should NOT use that behavior. These rules make the video exactly fill the banner. */
.about .banner .ph-in {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: none;
  transform: none;
}

.about .banner .ph-in video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

/* ========================================================= VIDEO PERFORMANCE / MOBILE ========================================================= */
.about .banner {
  position: relative;
  overflow: hidden;
}

.about .banner video {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ========================================================= CASE IMAGE HOVER ========================================================= */
.work article:hover img {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.02);
}

@media (hover: none),
(pointer: coarse) {
  .work article:hover img {
    transform: none;
    filter: none;
  }
}

/* ========================================================= MOBILE MENU ========================================================= */
/* Hidden on desktop. Under 900px the header nav (incl. the Kontakt button) is replaced by a Menu button that opens a full-screen overlay. */
.menu-btn,
.menu {
  display: none;
}

@media (max-width: 900px) {
  header nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 8px 18px;
    background: var(--blue);
    color: #fff;
    border: 2px solid var(--blue);
    border-radius: 2.5px;
    font: inherit;
    font-weight: 500;
    line-height: 1.6;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .4s var(--ease), color .4s var(--ease);
  }

  .menu-btn svg,
  .menu-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .menu-btn svg {
    width: 20px;
  }

  .menu-btn:active {
    background: #2f5fe0;
    border-color: #2f5fe0;
    color: #fff;
  }

  html.menu-open {
    overflow: hidden;
  }

  .menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    color: #000;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .75s var(--ease), visibility 0s linear .75s;
  }

  .menu.is-open {
    visibility: visible;
    clip-path: inset(0);
    transition: clip-path .75s var(--ease), visibility 0s;
  }

  .menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .menu .logo-img {
    height: 38px;
  }

  .menu-close {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: transparent;
    color: #000;
    border: 2px solid #000;
    border-radius: 2.5px;
    font: inherit;
    font-weight: 500;
    line-height: 1.6;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .4s var(--ease), color .4s var(--ease);
  }

  .menu-close:active {
    background: #000;
    color: #fff;
  }

  .menu-links {
    display: flex;
    flex-direction: column;
    padding: 40px 0;
  }

  .menu-links a {
    display: block;
    padding: 14px 0;
    color: #000;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-links .mw {
    display: block;
    overflow: hidden;
  }

  .menu-links .ml {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    transform: translateY(115%);
    transition: transform .9s var(--ease) calc(.2s + var(--i) * .07s), opacity .3s var(--ease);
  }

  .menu-links a:active .ml {
    opacity: .5;
  }

  .menu.is-open .menu-links .ml {
    transform: none;
  }
}

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

  .menu,
  .menu-links .ml {
    transition: none;
  }
}

/* ========================================================= 404 PAGE ========================================================= */
.nf {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(130px, 11.7vw, 225px);
  padding-bottom: 90px;
  padding-left: max(24px, calc((100vw - var(--content)) / 2));
  padding-right: max(24px, calc((100vw - var(--content)) / 2));
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}

.nf .ghost {
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  font-size: clamp(150px, 46vw, 640px);
  -webkit-text-stroke: 1px rgba(32, 32, 32, .09);
}

.nf .hero-c {
  gap: 36px;
}

.nf .copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  margin: 0;
  font-size: 13px;
}

@media (max-width: 700px) {
  .nf {
    padding: 124px 20px 96px;
  }

  .nf .hero-c {
    gap: 40px;
  }
}

@media (max-width: 700px) {
  .menu {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ========================================================= MOBIL: HERO (knapper skal kunne ses uden at scrolle) ========================================================= */
@media (max-width: 700px) {
  .hero {
    padding: calc(92px + env(safe-area-inset-top, 0px)) var(--pad) 28px;
    min-height: 100vh;
    min-height: 100svh;
    justify-content: center;
  }

  .hero-c {
    gap: 22px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }

  .badge {
    padding: 4px 16px;
  }

  .lead {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.55;
  }

  .acts {
    gap: 8px;
  }
}

@media (max-width: 700px) and (max-height: 700px) {
  .hero {
    padding-top: calc(82px + env(safe-area-inset-top, 0px));
    padding-bottom: 20px;
  }

  .hero-c {
    gap: 16px;
  }

  .badges {
    margin-top: 12px;
  }

  .lead {
    margin-top: 12px;
    font-size: 13.5px;
  }
}


/* ========================================================= BUTTONS: CAPITALIZED ========================================================= */
/* Alle knapper/CTA'er får stort begyndelsesbogstav i hvert ord (Se Cases, Se Case, Alle Cases, Kontakt …). */
.btn,
.btn-o,
.btn-b,
.btn-l,
.case-cta,
.menu-btn,
.menu-close,
.c-back {
  text-transform: capitalize;
}


/* ========================================================= HERO: SCROLL-INDIKATOR ========================================================= */
/* Computer (mus): en lille mus med et hjul, der ruller ned. Telefon/touch: to pile, der pulserer nedad.
   Skjules, så snart man scroller (.hero.is-scrolled) og hvis der ikke er plads (.no-room, sættes i script.js). */
.scroll-cue {
  position: absolute;
  left: 50%;
  top: calc(100vh - 42px - clamp(26px, 5vh, 48px));
  top: calc(100svh - 42px - clamp(26px, 5vh, 48px));
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  animation: cueIn .9s var(--cine-ease) 2.1s forwards;
  -webkit-tap-highlight-color: transparent;
}

.sc-mouse,
.sc-chev {
  transition: opacity .45s var(--ease);
}

.hero.is-scrolled .sc-mouse,
.hero.is-scrolled .sc-chev,
.scroll-cue.no-room .sc-mouse,
.scroll-cue.no-room .sc-chev {
  opacity: 0;
}

.hero.is-scrolled .scroll-cue,
.scroll-cue.no-room {
  pointer-events: none;
}

@keyframes cueIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Mus */
.sc-mouse {
  display: none;
  position: relative;
  width: 26px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  opacity: .8;
}

.sc-mouse i {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink);
  animation: cueWheel 1.9s cubic-bezier(.65, 0, .35, 1) infinite;
}

@keyframes cueWheel {
  0%   { opacity: 0; transform: translateY(0); }
  20%  { opacity: 1; }
  70%  { opacity: 1; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(17px); }
}

/* Telefon / touch: pile */
.sc-chev {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: .85;
}

.sc-chev svg {
  display: block;
  width: 18px;
  height: 10px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  animation: cueChev 1.7s ease-in-out infinite;
}

.sc-chev svg + svg {
  margin-top: -4px;
  animation-delay: .22s;
}

@keyframes cueChev {
  0%   { opacity: 0; transform: translateY(-5px); }
  40%  { opacity: 1; }
  85%, 100% { opacity: 0; transform: translateY(5px); }
}

/* Computer med mus og bred nok skærm: vis musen i stedet for pilene */
@media (hover: hover) and (pointer: fine) and (min-width: 701px) {
  .sc-mouse { display: block; }
  .sc-chev  { display: none; }
}

/* Telefon: pilene ligger i hero'ens nederste kant (padding), så "Se Cases"/"Kontakt" ikke skubbes */
@media (max-width: 700px) {
  .scroll-cue {
    top: auto;
    bottom: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; opacity: 1; }
  .sc-mouse i { animation: none; opacity: 1; transform: translateY(4px); }
  .sc-chev svg { animation: none; opacity: .85; }
  .sc-chev svg + svg { opacity: .45; }
}


@media (max-width: 380px) {
  .menu-btn {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }

}

/* ========================================================= HEADER SCROLL PADDING — DESKTOP ========================================================= */
/* Give the compact/sticky header a little more breathing room on desktop. */
@media (min-width: 901px) {
  header.is-stuck {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* ========================================================= HEADER NAV LAYOUT ========================================================= */



/* Final header/mobile menu adjustments */
@media (min-width: 901px) {
  /* Keep the desktop navigation links and contact button together on the right. */
  header nav {
    position: static;
    inset: auto;
    width: auto;
    max-width: none;
    margin: 0 0 0 auto;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(24px, 3vw, 48px);
    pointer-events: auto;
  }
  header nav .nav-links {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(24px, 3vw, 48px);
    white-space: nowrap;
    pointer-events: auto;
  }
  header nav .btn-o {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    box-sizing: border-box;
    padding: 10px 50px;
    margin-left: auto;
    white-space: nowrap;
    pointer-events: auto;
  }

@media (min-width: 1440px) {
  header nav .btn-o {
    right: max(32px, calc((100vw - var(--content-wide)) / 2));
  }
}

  footer .footer-soc svg {
    fill: none !important;
    stroke: #fff !important;
  }
}

@media (max-width: 900px) {
  footer .footer-soc svg {
    fill: none !important;
    stroke: #fff !important;
  }
}

@media (max-width: 900px) {
  header nav { display: none; }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }
  .menu-links {
    padding: clamp(56px, 12vh, 110px) 0;
    gap: clamp(6px, 1.5vh, 14px);
  }
  .menu-links a { padding: 8px 0; }
  .menu-links .ml {
    font-family: var(--display);
    font-size: clamp(24px, 7.2vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .8px;
    text-transform: uppercase;
  }
}

/* About intro — extra bold */
.bio [data-i="about.p1"] {
  font-weight: 900 !important;
}


/* ========================================================= FONT WEIGHTS ========================================================= */
/* Intro/about text should remain extra bold in every language. */
.about-intro {
  font-weight: 900 !important;
}

/* All buttons and CTA elements use a consistent 700 weight. */
button,
.btn,
.btn-o,
.btn-b,
.btn-l,
.case-cta,
.sv-cta {
  font-weight: 700 !important;
}


/* ========================================================= COMING SOON (cases that are not published yet) ========================================================= */
/* Hele casen får 0.8 opacity, ingen link, ingen hover-effekter, og "Soon" står under året. */
.card.is-soon {
  opacity: .8;
}

.case-link.is-soon {
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.case-link.is-soon,
.case-link.is-soon:hover {
  transform: none;
}

.case-link.is-soon:hover .ph-in {
  filter: none;
}

.case-link.is-soon .ph::after {
  display: none;
}

.case-link.is-soon:hover .det .t h3 {
  font-weight: 700;
}

.soon-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 8px 18px;
  border-radius: 2000px;
  background: rgba(0, 0, 0, .74);
  color: #fff;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.yr {
  text-align: right;
}

.yr .soon,
.c-yr .soon {
  display: block;
  width: max-content;
  margin: 8px 0 0 auto;
  padding: 3px 11px;
  border: 1px solid currentColor;
  border-radius: 2000px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .8px;
  text-transform: uppercase;
}


/* ========================================================= MOBIL: SKJUL HERO-STATS ========================================================= */
/* "10 års erfaring · 190+ projekter · Discipliner: …" vises kun på tablet og computer (> 700 px). */
@media (max-width: 700px) {
  .badges {
    display: none !important;
  }
}


/* ========================================================= FINAL POLISH: EMPHASIS, LOADER, VIDEO, FOOTER ========================================================= */
/* Vigtige formuleringer på Arlos Fade-casen får en tydeligere, ekstra kraftig vægt. */
.case-emphasis {
  font-weight: 800;
}

/* Hold selve siden skjult, indtil loading-animationen er færdig. Loaderen forbliver synlig. */
html.ld-on body > :not(#loader) {
  visibility: hidden !important;
}
html.ld-on #loader {
  visibility: visible !important;
}

/* Footerens sociale ikoner: hvid cirkel med sort ikon. */
footer .footer-soc a {
  background: #fff !important;
  border: 1px solid #fff !important;
}
footer .footer-soc svg,
footer .footer-soc svg path,
footer .footer-soc svg rect,
footer .footer-soc svg circle {
  stroke: #111 !important;
  fill: none !important;
  filter: none !important;
}

/* Klip video og parallax-lag præcist til About-bannerets afrundede frame. */
.about .banner {
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 round 18px);
}
.about .banner .ph-in {
  inset: 0 !important;
  overflow: hidden;
  clip-path: inset(0 round 18px);
  border-radius: inherit;
}
.about .banner .ph-in video {
  width: 100% !important;
  height: 100% !important;
  inset: 0 !important;
  object-fit: cover;
  clip-path: inset(0 round 18px);
}

@media (max-width: 700px) {
  /* Hold cases adskilt på små skærme, også når billederne animeres ind. */
  .work .row {
    display: block;
    margin-top: 0;
  }
  .work .row + .row {
    margin-top: 28px;
  }
  .work .card,
  .work .card.o {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 32px !important;
    padding: 0 0 28px !important;
    transform: none !important;
  }
  .work .card:last-child {
    margin-bottom: 0 !important;
  }
  .work .card .ph {
    transform: none !important;
  }
  .work .card .det {
    position: relative;
    transform: none !important;
  }
}


/* Keep footer social icon backgrounds white and glyphs black, overriding legacy rules. */
footer .footer-soc a { background-color: #fff !important; }
footer .footer-soc svg,
footer .footer-soc svg path,
footer .footer-soc svg rect,
footer .footer-soc svg circle {
  color: #111 !important;
  stroke: #111 !important;
  fill: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* All CTA labels use uppercase consistently. */
.btn,
.btn-o,
.btn-b,
.btn-l,
.case-cta,
.sv-cta,
.cta,
footer .cta,
header nav .btn-o {
  text-transform: uppercase !important;
}


/* ========================================================= BEFORE FOOTER ========================================================= */
.prefooter {
  position: relative;
  isolation: isolate;
  background: #202020 url('img/before-footer.jpg') center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: calc(clamp(72px, 10.42vw, 200px) + 25px) var(--pad);
}

.prefooter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(32, 32, 32, .75);
  z-index: -1;
}

.prefooter-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.prefooter-txt {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 760px;
  width: 100%;
}

.prefooter-h {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.08vw + 8px, 40px);
  line-height: 1.35;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0;
}

.prefooter-txt p {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.prefooter .btn-b {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

/* ========================================================= MOBILE MENU — CENTERED + FADE/BLUR ========================================================= */
@media (max-width: 900px) {
  /* Layout: logo/close on top, links centred in the middle of the screen, socials at the bottom */
  .menu {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    clip-path: none;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .45s var(--ease), transform .9s var(--cine-ease), visibility 0s linear .45s;
  }

  .menu.is-open {
    clip-path: none;
    opacity: 1;
    transform: none;
    transition: opacity .5s var(--ease), transform .9s var(--cine-ease), visibility 0s;
  }

  .menu-top {
    align-self: start;
    opacity: 0;
    transition: opacity .4s var(--ease);
  }

  .menu.is-open .menu-top {
    opacity: 1;
    transition-delay: .2s;
  }

  .menu-close {
    width: 48px;
    height: 48px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 50%;
    border-width: 1.5px;
  }

  .menu-close span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .menu-close svg {
    width: 20px;
    height: 20px;
  }

  /* Links: centred, regular weight; the current page is bold */
  .menu-links {
    align-self: center;
    justify-self: stretch;
    width: 100%;
    align-items: center;
    text-align: center;
    gap: clamp(2px, 1vh, 10px);
    padding: 0;
  }

  .menu-links a {
    display: block;
    width: 100%;
    padding: clamp(8px, 1.6vh, 14px) 14px;
    text-align: center;
  }

  .menu-links .mw {
    overflow: visible;
  }

  .menu-links .ml {
    display: block;
    text-align: center;
    font-weight: 400;
    letter-spacing: .6px;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(22px);
    transition: opacity .7s var(--ease) calc(.15s + var(--i) * .06s),
                filter .7s var(--ease) calc(.15s + var(--i) * .06s),
                transform .9s var(--cine-ease) calc(.15s + var(--i) * .06s),
                color .3s var(--ease);
  }

  .menu-links a[aria-current="page"] .ml {
    font-weight: 700;
  }

  .menu.is-open .menu-links .ml {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .menu-links a:active .ml {
    opacity: 1;
    color: var(--blue);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu,
  .menu.is-open,
  .menu-top,
  .menu-links .ml {
    transition: none;
    transform: none;
    filter: none;
  }
}


/* ========================================================= PROCESS ========================================================= */
.process {
  background: #fff;
  color: var(--ink);
  padding: 125px max(24px, calc((100vw - var(--content)) / 2)) 175px;
}

.process-head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 72px) 0;
  text-align: left;
}

.process-head h2 {
  margin: 0 0 22px;
}

.process-head p {
  margin: 0;
  color: var(--bio);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.step img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  border-radius: 25px;
  margin-bottom: 36px;
  background: var(--bg);
}

.step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.step p {
  color: var(--bio);
  margin: 0 0 1.2em;
}



@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
    gap: 48px;
  }
}

/* Same side widths as the other sections */
@media (min-width: 1440px) {
  .process {
    padding-left: max(32px, calc((100vw - var(--content-wide)) / 2));
    padding-right: max(32px, calc((100vw - var(--content-wide)) / 2));
  }
}

@media (max-width: 700px) {
  .process {
    padding-left: var(--pad);
    padding-right: var(--pad);
    padding-top: 97px;
    padding-bottom: 139px;
  }
}

/* ========================================================= PROCESS TEXT ANIMATION =========================================================
   Overskrift: hvert ord glider op bag en maske. Brødtekst: ordene toner ind og fokuseres ét ad gangen.
   Klassen .pt-ready sættes af script.js, så teksten altid er synlig uden JS / ved reduceret bevægelse. */
.process-head.pt-ready .pt-h .pw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .08em .04em .14em;
  margin: -.08em -.04em -.14em;
}

.process-head.pt-ready .pt-h .pw > span {
  display: inline-block;
  transform: translate3d(0, 115%, 0) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.15s var(--ease) calc(var(--i) * 90ms);
  will-change: transform;
}

.process-head.pt-ready .pt-p .pw {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .55em, 0);
  filter: blur(4px);
  transition:
    opacity .9s var(--cine-ease) calc(.45s + var(--i) * 28ms),
    transform 1s var(--cine-ease) calc(.45s + var(--i) * 28ms),
    filter .9s var(--cine-ease) calc(.45s + var(--i) * 28ms);
  will-change: transform, opacity, filter;
}

.process-head.pt-ready.in .pt-h .pw > span {
  transform: none;
}

.process-head.pt-ready.in .pt-p .pw {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Tynd linje under teksten, der tegnes, når afsnittet er afsløret */
.process-head.pt-ready::after {
  content: "";
  display: block;
  height: 2px;
  width: 64px;
  margin-top: 28px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease) 1.1s;
}

.process-head.pt-ready.in::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .process-head.pt-ready .pw,
  .process-head.pt-ready .pw > span,
  .process-head.pt-ready::after {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* ========================================================= SPIN BANNER (under About) ========================================================= */
.spin-banner {
  width: 100%;
  height: clamp(180px, 28vw, 420px);
  background-color: #c8e3f2;
  background-image: url("img/bannerspinand.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}


/* ========================================================= SERVICES DROPDOWN (desktop nav) ========================================================= */
.nav-dd { position: relative; display: inline-flex; align-items: center; padding: 14px 6px; margin: -14px -6px; }

header nav .nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: .75;
  cursor: pointer;
}header nav .nav-dd:has(:focus-visible) .nav-dd-toggle,
header nav .nav-dd.is-open .nav-dd-toggle { opacity: 1; }

.dd-chev {
  width: 10px;
  height: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ease);
}.nav-dd:has(:focus-visible) .dd-chev,
.nav-dd.is-open .dd-chev { transform: rotate(180deg); }

/* invisible bridge so the menu doesn't close while the pointer crosses the gap */
.nav-dd::after {
  content: '';
  position: absolute;
  left: -14px; right: -14px; top: 100%;
  height: 22px;
}

.nav-dd-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  min-width: 190px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(246, 242, 247, .94);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(32, 32, 32, .1);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(32, 32, 32, .14), 0 2px 6px rgba(32, 32, 32, .06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, -8px, 0) scale(.96);
  transform-origin: 50% 0;
  transition: opacity .35s var(--ease), transform .55s var(--ease), visibility 0s linear .55s;
  z-index: 5;
}.nav-dd:has(:focus-visible) .nav-dd-menu,
.nav-dd.is-open .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
  transition-delay: 0s;
}

header nav .nav-dd-menu a {
  position: relative;
  display: block;
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity .4s var(--ease), transform .55s var(--ease), background .3s var(--ease), color .3s var(--ease), padding .4s var(--ease);
}header nav .nav-dd:has(:focus-visible) .nav-dd-menu a,
header nav .nav-dd.is-open .nav-dd-menu a {
  opacity: .85;
  transform: none;
}header nav .nav-dd:has(:focus-visible) .nav-dd-menu a:nth-child(1),
header nav .nav-dd.is-open .nav-dd-menu a:nth-child(1) { transition-delay: .04s; }header nav .nav-dd:has(:focus-visible) .nav-dd-menu a:nth-child(2),
header nav .nav-dd.is-open .nav-dd-menu a:nth-child(2) { transition-delay: .09s; }header nav .nav-dd:has(:focus-visible) .nav-dd-menu a:nth-child(3),
header nav .nav-dd.is-open .nav-dd-menu a:nth-child(3) { transition-delay: .14s; }

header nav .nav-dd-menu a:hover,
header nav .nav-dd-menu a:focus-visible {
  opacity: 1;
  background: rgba(75, 125, 254, .1);
  color: var(--blue);
  padding-left: 22px;
  transition-delay: 0s;
}

/* the dropdown is desktop only; the mobile overlay keeps its own Services link */
@media (max-width: 900px) {
  .nav-dd-menu, .dd-chev { display: none; }
}

/* ========================================================= LIVELY MOTION (additions) ========================================================= */
@keyframes stgIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.96); filter: blur(3px); }
}
@keyframes wipeUp {
  from { clip-path: inset(100% 0 0 0 round 25px); }
  to   { clip-path: inset(0 0 0 0 round 25px); }
}
@keyframes imgSettle {
  from { transform: scale(1.28); }
}
@keyframes softPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .38); }
  70%  { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@keyframes prefDrift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.1); }
}
@keyframes badgeGlow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
@keyframes shimmer {
  from { transform: translateX(-120%) skewX(-18deg); }
  to   { transform: translateX(320%) skewX(-18deg); }
}
@keyframes drawLine {
  from { transform: scaleX(0); }
}

@media (prefers-reduced-motion: no-preference) {

  /* ---- staggered children inside already-revealing containers ---- */
  .rv.in > .stg-k,
  .rv.in .stg-k {
    animation: stgIn .95s var(--cine-ease) backwards;
    animation-delay: calc(.12s + var(--i, 0) * .085s);
  }

  /* header links settle in one by one */
  header nav.in .nav-links > * {
    animation: stgIn .8s var(--cine-ease) backwards;
    animation-delay: calc(.3s + var(--i, 0) * .07s);
  }

  /* ---- spin banner (under About): parallax + zoom settle + drifting phones ---- */
  .spin-banner { position: relative; overflow: hidden; }
  .spin-banner.has-in { background-image: none; }
  .spin-in {
    position: absolute;
    inset: -9% 0;
    background: url("img/bannerspinand.jpg") calc(50% + var(--sx, 0) * 1%) 50% / cover no-repeat;
    transform: translate3d(0, var(--ty, 0px), 0) scale(var(--sc, 1.08));
    will-change: transform, background-position;
  }
  .spin-banner::after {            /* light sweep when it enters */
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 22%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: translateX(-120%) skewX(-18deg);
    pointer-events: none;
  }
  .spin-banner.in::after { animation: shimmer 2.2s var(--ease) .15s 1 both; }

  /* ---- process ---- */
  .step-img {
    overflow: hidden;
    border-radius: 25px;
    margin-bottom: 36px;
    background: var(--bg);
  }
  .step-img img {
    border-radius: 0;
    margin: 0;
    transition: transform 1.3s var(--cine-ease);
  }
  .step.in .step-img { animation: wipeUp 1.5s var(--cine-ease) backwards; animation-delay: calc(.1s + var(--dl, 0s)); }
  .step.in .step-img img { animation: imgSettle 2s var(--cine-ease) backwards; animation-delay: calc(.1s + var(--dl, 0s)); }
  .step.in h3 { animation: stgIn .9s var(--cine-ease) .55s backwards; }
  .step.in p  { animation: stgIn .9s var(--cine-ease) backwards; }
  .step.in p:nth-of-type(1) { animation-delay: .68s; }
  .step.in p:nth-of-type(2) { animation-delay: .8s; }
  @media (hover: hover) {
    .step:hover .step-img img { transform: scale(1.06); }
    .step h3 { transition: letter-spacing .6s var(--ease), color .4s var(--ease); }
    .step:hover h3 { letter-spacing: 1.2px; color: var(--blue); }
  }

  /* ---- work cards ---- */
  .det.in .met span { animation: stgIn .8s var(--cine-ease) backwards; animation-delay: calc(.3s + var(--i, 0) * .08s); }
  @media (hover: hover) {
    .met span { transition: background .35s var(--ease), color .35s var(--ease), transform .45s var(--ease), border-color .35s var(--ease); }
    .case-link:not(.is-soon):hover .met span { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
    .case-link:not(.is-soon):hover .met span:nth-child(1) { transform: translateY(-3px); transition-delay: 0s; }
    .case-link:not(.is-soon):hover .met span:nth-child(2) { transform: translateY(-3px); transition-delay: .05s; }
    .case-link:not(.is-soon):hover .met span:nth-child(3) { transform: translateY(-3px); transition-delay: .1s; }
  }
  .soon-badge { overflow: hidden; }
  .soon-badge::after {
    content: '';
    position: absolute; inset: 0 auto 0 0; width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    animation: shimmer 3.6s ease-in-out 1.2s infinite;
  }

  /* ---- about: tags + social icons pop in ---- */
  .tag { transition: opacity .35s var(--ease), transform .5s var(--ease), background .35s var(--ease); }
  @media (hover: hover) {
    .tag:hover { opacity: 1; transform: translateY(-3px) rotate(-1.5deg); background: #fff; }
  }

  /* ---- prefooter ---- */
  .prefooter { overflow: hidden; }
  .prefooter::after {
    content: '';
    position: absolute;
    inset: -25%;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(38% 38% at var(--gx, 32%) var(--gy, 42%), rgba(75, 125, 254, .34), transparent 70%),
      radial-gradient(34% 34% at calc(100% - var(--gx, 32%)) calc(100% - var(--gy, 42%)), rgba(226, 133, 172, .24), transparent 70%);
    animation: prefDrift 16s ease-in-out infinite alternate;
  }

  /* ---- footer ---- */
  .fd.in > div { animation: stgIn .95s var(--cine-ease) backwards; }
  .fd.in > div:nth-child(1) { animation-delay: .15s; }
  .fd.in > div:nth-child(2) { animation-delay: .26s; }
  .fd.in > div:nth-child(3) { animation-delay: .37s; }
  .fd.in > div:nth-child(4) { animation-delay: .48s; }
  .fd p a, .fd h4 a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .5s var(--ease);
    padding-bottom: 2px;
  }
  .fd p a:hover, .fd h4 a:hover { background-size: 100% 1px; }

  /* ---- services page ---- */
  .sv-what.in .sv-list li { animation: stgIn .85s var(--cine-ease) backwards; animation-delay: calc(.12s + var(--i, 0) * .09s); position: relative; }
  .sv-list li { transition: padding-left .5s var(--ease), color .35s var(--ease); }
  @media (hover: hover) {
    .sv-list li:hover { padding-left: 14px; color: var(--blue); }
  }
  .sv-ex a { transition: color .3s var(--ease); }
  .sv-ex a:hover { color: var(--blue); }

  /* ---- case pages ---- */
  .c-facts.in > div { animation: stgIn .85s var(--cine-ease) backwards; animation-delay: calc(.15s + var(--i, 0) * .09s); }
}

/* magnetic buttons get a smooth return */
.btn.is-mag, .btn-b.is-mag { transition: transform .35s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }

header nav .nav-dd.is-closed .nav-dd-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, -8px, 0) scale(.96);
}
header nav .nav-dd.is-closed .dd-chev { transform: none; }



/* Navigation interaction fixes */
header nav .nav-links > a,
header nav .nav-dd-toggle {
  font-weight: 500;
  transition: opacity .2s ease, font-weight .2s ease, color .2s ease;
}
header nav .nav-links > a:hover,
header nav .nav-links > a:focus-visible,
header nav .nav-dd-toggle:hover,
header nav .nav-dd-toggle:focus-visible {
  opacity: 1;
  font-weight: 700;
}
/* Keep the CV CTA independent from generic nav-link hover styles. */
header nav > .btn-o { opacity: 1; }
header nav > .btn-o:hover { opacity: 1; }
/* Shorten the hover bridge/gap to make the services menu easier to enter. */
.nav-dd::after { height: 24px; }
.nav-dd-menu { top: calc(100% + 8px); }
@media (max-width: 900px) {
  .prefooter::after {
    opacity: .38 !important;
  }
}


/* Definitive desktop navigation isolation and dropdown hover fix */
@media (min-width: 901px) {
  header nav { position: relative; isolation: isolate; }
  header nav .nav-links { position: relative; z-index: 2; }
  header nav > .btn-o { position: relative; z-index: 1; flex: 0 0 auto; opacity: 1 !important; transform: none !important; }
  header nav .nav-links > a,
  header nav .nav-dd > .nav-dd-toggle { opacity: .75; font-weight: 500; }
  header nav .nav-links > a:hover,
  header nav .nav-links > a:focus-visible,
  header nav .nav-dd:hover > .nav-dd-toggle,
  header nav .nav-dd:focus-within > .nav-dd-toggle { opacity: 1; font-weight: 700; }
  /* Keep the menu attached to its trigger; no dead zone on first hover. */
  header nav .nav-dd { padding-bottom: 18px; margin-bottom: -18px; }
  header nav .nav-dd-menu { top: 100%; }
  header nav .nav-dd:hover .nav-dd-menu,
  header nav .nav-dd:focus-within .nav-dd-menu,
  header nav .nav-dd.is-open .nav-dd-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate3d(-50%, 0, 0) scale(1);
    transition-delay: 0s;
  }
  header nav .nav-dd:hover .nav-dd-menu a,
  header nav .nav-dd:focus-within .nav-dd-menu a,
  header nav .nav-dd.is-open .nav-dd-menu a { opacity: .85; transform: none; }
}
/* The CV button responds only to its own pointer target, never to sibling links. */
header nav > .btn-o:hover { opacity: 1 !important; }


/* Header layout: logo on the left, navigation in the middle/right, CTA at the far right. */
@media (min-width: 901px) {
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 3vw, 48px);
  }
  header > .logo {
    flex: 0 0 auto;
    margin-right: auto;
  }
  header > nav {
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(24px, 3vw, 48px);
  }
  header > nav > .nav-links {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.4vw, 36px);
    white-space: nowrap;
  }
  header > nav > .btn-o {
    flex: 0 0 auto;
    margin-left: 0;
    white-space: nowrap;
  }
}


/* Definitive desktop header alignment: logo | flexible space | nav links | CTA at far right */
@media (min-width: 901px) {
  header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(24px, 3vw, 48px);
  }
  header > .logo {
    flex: 0 0 auto;
    margin-right: 0;
  }
  header > nav {
    display: flex;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(20px, 2.5vw, 40px);
  }
  header > nav > .nav-links {
    display: flex;
    flex: 0 1 auto;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.2vw, 34px);
    white-space: nowrap;
  }
  header > nav > .btn-o {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    transform: none;
    white-space: nowrap;
  }
}

/* ========================================================= CTA ARROW (op-til-højre pil på alle CTA-knapper) ========================================================= */
.hv.btn,
.hv.btn-o,
.hv.btn-b,
.hv.btn-l {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hv.btn::after,
.hv.btn-o::after,
.hv.btn-b::after,
.hv.btn-l::after {
  content: '';
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .5s var(--ease);
}

@media (hover: hover) {
  .hv.btn:hover::after,
  .hv.btn-o:hover::after,
  .hv.btn-b:hover::after,
  .hv.btn-l:hover::after {
    transform: translate3d(2px, -2px, 0);
  }
}

/* ========================================================= "HAR DU ET PROJEKT I TANKERNE?" ========================================================= */
/* Knappen: ingen fyld-/tekst-skift, ingen magnet og ingen puls – kun en rolig hover. */
.prefooter .btn-b.hv::before {
  display: none;
}

.prefooter .btn-b.hv .bt > span {
  transform: none !important;
}

.prefooter .btn-b.hv .bt > span::after {
  display: none;
}

.prefooter .btn-b.hv {
  animation: none !important;
  transition: opacity 1s var(--ease), transform 1.15s var(--ease), filter .4s var(--ease);
}

@media (hover: hover) {
  .prefooter .btn-b.hv:hover {
    color: #fff;
    filter: brightness(1.12);
  }
}

/* Sektionen vokser fra 0 % til sin fulde højde, når den kommer ind i billedet */
.prefooter {
  display: grid;
  grid-template-rows: 1fr;
  padding: 0;
}

.prefooter-clip {
  min-height: 0;
  overflow: hidden;
}

.prefooter-clip > .prefooter-in {
  padding: calc(clamp(72px, 10.42vw, 200px) + 25px) var(--pad);
}

html.pf-anim .prefooter {
  grid-template-rows: 0fr;
  transition: grid-template-rows 1.5s var(--cine-ease);
}

html.pf-anim .prefooter.in {
  grid-template-rows: 1fr;
}

@media (prefers-reduced-motion: reduce) {
  html.pf-anim .prefooter {
    grid-template-rows: 1fr;
    transition: none;
  }
}

/* ========================================================= NAV: AKTUEL SIDE ER FED ========================================================= */
header nav .nav-links > a[aria-current="page"],
header nav .nav-dd > .nav-dd-toggle[aria-current="page"] {
  opacity: 1;
  font-weight: 700;
}

/* ========================================================= ABOUT: VIDEO SKJULT + BILLEDE 50/50 ========================================================= */
.about .banner {
  display: none !important;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}

.about-split > .bio {
  max-width: none;
  min-width: 0;
}

.about-img {
  position: relative;
  min-height: 420px;
  border-radius: 25px;
  overflow: hidden;
  background: #d9d9de;
}

.about-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-img {
    min-height: 0;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }
}


/* ========================================================= PROJEKT-SEKTION: VIDEO + INGEN HØJDE-ANIMATION ========================================================= */
/* Sektionen har altid fuld højde (ingen grow-animation), så scroll ikke hakker. */
html.pf-anim .prefooter,
html.pf-anim .prefooter.in {
  grid-template-rows: 1fr;
  transition: none;
}
.prefooter { overflow: hidden; }
.prefooter-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  background: #202020;
}

/* ========================================================= HERO: FLYVENDE BILLEDER I BAGGRUNDEN (kun PC, se hero-popup.js) ========================================================= */
.hero { isolation: isolate; }
.hero-pop { display: none; }
@media (min-width: 901px) {
  .hero-pop {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-pop .hp-i {
    position: absolute;
    aspect-ratio: 1 / 1;
    opacity: 0;
    will-change: transform, opacity;
  }
  .hero-pop .hp-i img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
  }
  .hero-c { z-index: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero-pop { display: none !important; } }


/* ========================================================= CLIENTS (logo loop) ========================================================= */
/* Slim, full-bleed strip right after the about section. Logos come from img/clients-loop/ via build_clients.py. */
.clients {
  position: relative;
  background: #fff;
  overflow: hidden;
  padding: 0 0 clamp(8px, 1.5vw, 20px);
}

/* soft white fade on both edges */
.clients::before,
.clients::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 12vw, 220px);
  z-index: 2;
  pointer-events: none;
}
.clients::before { left: 0;  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); }
.clients::after  { right: 0; background: linear-gradient(to left,  #fff, rgba(255, 255, 255, 0)); }

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll var(--dur, 40s) linear infinite;
  will-change: transform;
}

.clients-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: clamp(48px, 7vw, 96px);
  padding-right: clamp(48px, 7vw, 96px);
  min-width: 100vw;
}

.clients-group img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: opacity .3s ease, filter .3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes clients-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }   /* right -> left, two identical groups = seamless loop */
}

@media (hover: hover) {
  .clients-track:hover { animation-play-state: paused; }
  .clients-group img:hover { opacity: 1; filter: none; }
}

@media (max-width: 900px) {
  .clients-group img { height: 32px; max-width: 130px; }
  .clients-group { gap: 44px; padding-right: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .clients { overflow-x: auto; }
  .clients::before, .clients::after { display: none; }
  .clients-track { animation: none; }
  .clients-group[aria-hidden="true"] { display: none; }
}

/* ========================================================= CINEMATIC PARALLAX (see cinematic.js) ========================================================= */
.hero-c, .hero-pop, .about-img, .bio, .process-head, .process-steps .step, .wi,
.prefooter-video, .prefooter-in, footer .cta-h, .scroll-cue { will-change: translate; }

/* Prefooter background gets extra height so it can drift without showing edges */
.prefooter { overflow: hidden; }
.prefooter-video { top: -14%; bottom: auto; height: 128%; transform-origin: 50% 50%; }

/* Soft cinematic vignette over the hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(32, 32, 32, .07) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-c, .hero-pop, .about-img, .bio, .process-head, .process-steps .step, .wi,
  .prefooter-video, .prefooter-in, footer .cta-h, .scroll-cue { translate: none !important; scale: none !important; }
}


/* ========================================================= MOBILE MENU v3 — circle reveal, masked links, CV button ========================================================= */
@media (max-width: 900px) {
  .menu {
    --mx: calc(100% - 64px);
    --my: calc(46px + env(safe-area-inset-top, 0px));
    grid-template-rows: auto 1fr auto;
    opacity: 1;
    transform: none;
    clip-path: circle(0px at var(--mx) var(--my));
    transition: clip-path .7s cubic-bezier(.76, 0, .24, 1), visibility 0s linear .7s;
  }

  .menu.is-open {
    opacity: 1;
    transform: none;
    clip-path: circle(150vmax at var(--mx) var(--my));
    transition: clip-path .95s cubic-bezier(.76, 0, .24, 1), visibility 0s;
  }

  .menu-links {
    align-self: center;
    gap: 0;
    padding: 12px 0;
  }

  .menu-links a {
    padding: 0 14px;
  }

  .menu-links .mw {
    overflow: hidden;
    padding: .14em 0;
  }

  .menu-links .ml {
    font-family: var(--display);
    font-size: clamp(30px, min(9.4vw, 6.2vh), 46px);
    line-height: 1.18;
    letter-spacing: .02em;
    opacity: 1;
    filter: none;
    transform: translateY(115%);
    transition: transform .4s var(--ease), color .3s var(--ease);
  }

  .menu.is-open .menu-links .ml {
    opacity: 1;
    filter: none;
    transform: none;
    transition: transform 1s var(--cine-ease) calc(.3s + var(--i) * .07s), color .3s var(--ease);
  }

  .menu-links a:active .ml {
    opacity: 1;
    color: var(--blue);
  }

  /* CV button pinned to the bottom of the menu */
  .menu-cv {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(100%, 380px);
    min-height: 56px;
    padding: 0 28px;
    background: #1e1e1e;
    color: #fdfdfd;
    border-radius: 8px;
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .25s var(--ease), transform .4s var(--ease), background .3s var(--ease);
  }

  .menu.is-open .menu-cv {
    opacity: 1;
    transform: none;
    transition: opacity .7s var(--ease) .65s, transform 1s var(--cine-ease) .65s, background .3s var(--ease);
  }

  .menu-cv svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .4s var(--ease);
  }

  .menu-cv:active {
    background: var(--blue);
  }

  .menu-cv:active svg {
    transform: translate(3px, -3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu,
  .menu.is-open,
  .menu-links .ml,
  .menu.is-open .menu-links .ml,
  .menu-cv,
  .menu.is-open .menu-cv {
    transition: none;
  }
}

/* ========================================================= MOBILE MENU — divider lines between links ========================================================= */
@media (max-width: 900px) {
  .menu-links {
    border-top: 0px solid #d8d2db;
  }

  .menu-links a {
    padding: 12px 14px;
    border-bottom: 1px solid #d8d2db;
  }
}


/* =========================================================
   MOBILE MENU UX PASS — larger targets, calmer motion, thumb-friendly CTA
   Applied after the existing rules so desktop navigation is unchanged.
   ========================================================= */
@media (max-width: 900px) {
  .menu-btn {
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    padding: 10px 16px;
    gap: 9px;
    font-size: 16px;
    line-height: 1.2;
  }

  .menu {
    padding:
      calc(14px + env(safe-area-inset-top, 0px))
      clamp(20px, 6vw, 28px)
      calc(16px + env(safe-area-inset-bottom, 0px));
    /* Keep menu actions clear of device safe areas and allow small screens to scroll. */
    height: 100%;
    height: 100dvh;
    box-sizing: border-box;
    transition: clip-path .38s var(--ease), visibility 0s linear .38s;
  }

  .menu.is-open {
    transition: clip-path .38s var(--ease), visibility 0s;
  }

  .menu-top {
    min-height: 52px;
    flex: 0 0 auto;
  }

  .menu .logo-img {
    height: 34px;
    width: auto;
  }

  .menu-close {
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    padding: 10px 14px;
    gap: 8px;
    font-size: 15px;
    line-height: 1.2;
  }

  .menu-links {
    flex: 1 0 auto;
    justify-content: center;
    padding: clamp(22px, 5vh, 48px) 0;
    gap: 8px;
  }

  .menu-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    text-decoration: none;
  }

  .menu-links a:first-child {
    border-top: 1px solid rgba(0, 0, 0, .12);
  }

  .menu-links .mw {
    width: 100%;
  }

  .menu-links .ml {
    font-family: var(--display);
    font-size: clamp(25px, 7vw, 32px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .menu-links a[aria-current="page"] .ml {
    color: var(--blue);
  }

  .menu-links a:focus-visible,
  .menu-close:focus-visible,
  .menu-cv:focus-visible,
  .menu-btn:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
  }

  .menu-cv {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 14px 18px;
    background: var(--blue);
    color: #fff;
    border: 2px solid var(--blue);
    border-radius: 2.5px;
    font-size: 16px;
    line-height: 1.25;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-cv svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .menu-cv:active {
    opacity: .82;
  }
}

@media (max-width: 380px) {
  .menu {
    padding-left: 18px;
    padding-right: 18px;
  }

  .menu-links {
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 5px;
  }

  .menu-links a {
    min-height: 54px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .menu-links .ml {
    font-size: 25px;
  }
}

@media (max-height: 620px) and (max-width: 900px) {
  .menu-links {
    justify-content: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .menu-links a {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  @media (max-width: 900px) {
    .menu,
    .menu.is-open {
      transition: none;
    }
  }
}


/* MOBILE MENU POLISH — remove stray top rule and normalize toggle button states */
@media (max-width: 900px) {
  .menu-top {
    border-top: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
  }

  .menu-btn,
  .menu-close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    box-shadow: none;
    background-image: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }

  .menu-btn:focus,
  .menu-btn:active,
  .menu-close:focus,
  .menu-close:active {
    box-shadow: none;
  }

  .menu-btn:focus-visible,
  .menu-close:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }

  .menu-btn::-moz-focus-inner,
  .menu-close::-moz-focus-inner {
    border: 0;
    padding: 0;
  }
}


/* ========================================================= FIXES: about image on phone + footer heading break ========================================================= */
/* The about image is absolutely positioned inside .about-img, so the box gets its height from aspect-ratio only.
   With the grid's default align-items: stretch the row collapsed to 0px on phones, hiding the image. */
@media (max-width: 900px) {
  .about-split { align-items: start; }
  .about-img {
    align-self: start;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .about-img img { object-position: center top; }
}

/* "Lad os lave / noget fedt" – line break after "lave" on phones only */
.br-m { display: none; }
@media (max-width: 700px) {
  .br-m { display: block; }
}
