/* Shared device frames for selected service and editorial sections. */
.section-device {
  --rim: clamp(5px, .65vw, 10px);
  --corner: clamp(9px, 1.3vw, 18px);
  --screen-ratio: 2.25;
  position: relative;
  min-width: 0;
  width: min(100%, 1100px);
  margin-inline: auto;
}

.section-device-tablet {
  --corner: clamp(13px, 2vw, 25px);
  --screen-ratio: 2;
}

.section-device-laptop {
  --screen-ratio: 2;
}

.section-device-hero {
  width: min(calc(100% - 36px), 1250px);
  margin: clamp(22px, 3vw, 44px) auto clamp(32px, 5vw, 66px);
}

body.clean-design #main-content#main-content#main-content .section-device > :is(figure, section) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: var(--rim) solid #1b2529 !important;
  border-radius: var(--corner) !important;
  overflow: hidden !important;
  box-shadow: 0 0 0 1px #727e81, 0 12px 28px #102a3026 !important;
  clip-path: none !important;
  mask: none !important;
}

body.clean-design #main-content#main-content#main-content .section-device > figure {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: var(--screen-ratio) !important;
  padding: 0 !important;
}

body.clean-design #main-content#main-content#main-content .section-device > figure > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  clip-path: none !important;
  mask: none !important;
}

.section-device-hardware {
  position: relative;
  pointer-events: none;
}

.section-device-laptop > .section-device-hardware {
  z-index: 1;
  width: 108%;
  height: clamp(8px, 1.2vw, 17px);
  margin: -1px 0 0 -4%;
  border-radius: 2px 2px 45% 45% / 2px 2px 68% 68%;
  background: linear-gradient(#aab4b7, #778487 55%, #465154);
  box-shadow: 0 5px 8px #152a3238;
}

.section-device-laptop > .section-device-hardware::before {
  content: "";
  position: absolute;
  inset: 0 44% 45%;
  border-radius: 0 0 5px 5px;
  background: #546164;
}

.section-device-tablet > .section-device-hardware {
  position: absolute;
  top: calc(var(--rim) / 2 - 1px);
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #687a85;
  box-shadow: 0 0 0 1px #11191c;
}

.section-device-monitor > .section-device-hardware {
  display: grid;
  justify-items: center;
  margin: 0 auto;
}

.section-device-monitor > .section-device-hardware::before {
  content: "";
  width: 7%;
  height: clamp(15px, 3.1vw, 48px);
  background: linear-gradient(90deg, #323e42, #647074 52%, #303b3f);
}

.section-device-monitor > .section-device-hardware::after {
  content: "";
  width: 22%;
  height: clamp(5px, .7vw, 10px);
  border-radius: 50% 50% 4px 4px;
  background: linear-gradient(#677477, #293538);
  box-shadow: 0 4px 8px #182e3445;
}

.projects-coast > .section-device {
  width: min(calc(100% - 36px), 1080px);
  padding: 0 0 clamp(32px, 4vw, 64px);
}

@media (max-width: 760px) {
  .section-device {
    --screen-ratio: 1.65;
  }

  .section-device-hero {
    width: calc(100% - 28px);
  }
}

.device-screen-story {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: start;
  min-height: clamp(410px, 42vw, 600px);
  overflow: hidden;
  border: var(--rim) solid #1b2529;
  border-radius: var(--corner);
  background: #171719;
  box-shadow: 0 0 0 1px #727e81, 0 12px 28px #102a3026;
}

body.clean-design #main-content#main-content#main-content .device-screen-story > figure {
  position: absolute !important;
  z-index: -1;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  mask: none !important;
}

.device-screen-story > figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-screen-story > figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(23 23 25 / 68%), rgb(23 23 25 / 60%));
}

body.clean-design #main-content#main-content#main-content .device-screen-story > div {
  max-width: 100%;
  padding: clamp(28px, 4vw, 58px) clamp(16px, 3vw, 45px) clamp(100px, 12vw, 165px) !important;
}

body.clean-design #main-content#main-content#main-content .device-screen-story :is(.eyebrow, h1, em, p) {
  color: #fff !important;
}

body.clean-design #main-content#main-content#main-content .device-screen-story .button {
  background: #fff !important;
  border-color: #fff !important;
  color: #153f47 !important;
}

body.clean-design #main-content#main-content#main-content .device-screen-story .button:is(:hover, :focus-visible) {
  background: #edf2ef !important;
}

.idea-feature-device {
  width: 100%;
  max-width: 720px;
  margin: 0 auto clamp(16px, 2vw, 30px);
}



.about-values-grid .section-device-phone {
  --screen-ratio: .59;
  --corner: 20px;
  --rim: 5px;
  width: min(70%, 175px);
  margin-bottom: 22px;
}

.about-values-grid .section-device-phone > .section-device-hardware {
  position: absolute;
  top: 4%;
  left: 37%;
  width: 26%;
  height: clamp(7px, .8vw, 11px);
  border-radius: 999px;
  background: #141b1d;
}

.about-values-grid .section-device-phone::after {
  content: "";
  position: absolute;
  bottom: 3%;
  left: 34%;
  width: 32%;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 4px #0007;
  pointer-events: none;
}

@media (max-width: 760px) {
  .device-screen-story {
    min-height: 390px;
  }

  .about-values-grid .section-device-phone {
    width: min(70%, 155px);
  }
}

/* The screen on Softwareudvikling displays the photograph below the introduction. */
.software-centered-hero .section-device-monitor {
  width: min(92%, 880px);
  --screen-ratio: 2.1;
}

body.clean-design #main-content#main-content#main-content .software-centered-hero .section-device-monitor > .software-hero-photo {
  background: #1b2529;
}

@media (max-width: 760px) {
  .software-centered-hero .section-device-monitor {
    width: 94%;
    --screen-ratio: 1.65;
  }
}

.projects-coast > .section-device-laptop {
  width: min(calc(100% - 52px), 965px);
}

.projects-coast .section-device-laptop .device-screen-story {
  min-height: clamp(380px, 36vw, 510px);
}

body.clean-design #main-content#main-content#main-content #projektgalleri .concept-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px !important;
  margin-block: 0 26px !important;
}

body.clean-design #main-content#main-content#main-content #projektgalleri .concept-filters button {
  min-height: 48px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #d8dedf;
  border-radius: 14px !important;
  background: #f3f5f5;
  color: #153f47;
  box-shadow: none;
  text-align: center;
  overflow-wrap: anywhere;
}

body.clean-design #main-content#main-content#main-content #projektgalleri .concept-filters button:hover {
  background: #e6eded;
}

body.clean-design #main-content#main-content#main-content #projektgalleri .concept-filters button[aria-pressed="true"] {
  background: #153f47;
  border-color: #153f47;
  color: #fff;
}

#projektgalleri .concept-filters button:focus-visible {
  outline: 2px solid #153f47;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  body.clean-design #main-content#main-content#main-content #projektgalleri .concept-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.inspiration-page > .section-device-hero {
  width: min(88%, 1080px);
}

.idea-feature-device.section-device-phone {
  --rim: clamp(6px, .75vw, 10px);
  --corner: clamp(26px, 4vw, 46px);
}
body.clean-design #main-content#main-content#main-content #projektideer .idea-showcase:has(.idea-preview-screen):not([hidden]) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  padding: clamp(16px, 3vw, 40px);
}

.idea-feature-device.section-device-phone {
  max-width: 330px;
  margin: 0 auto;
}

.idea-preview-screen {
  overflow: hidden;
  border: var(--rim) solid #1b2529;
  border-radius: var(--corner);
  background: #fff;
  box-shadow: 0 0 0 1px #727e81, 0 12px 28px #102a3026;
}

body.clean-design #main-content#main-content#main-content #projektideer .idea-preview-screen img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 390 / 790 !important;
  object-fit: contain !important;
}

body.clean-design #main-content#main-content#main-content #projektideer .idea-preview-screen ~ .section-device-hardware::after {
  background: #1b2529;
}

body.clean-design #main-content#main-content#main-content #projektideer .idea-showcase:has(.idea-preview-screen) > .idea-showcase-copy {
  padding: 0 !important;
  color: #153f47 !important;
  background: transparent !important;
}

@media (max-width: 850px) {
  body.clean-design #main-content#main-content#main-content #projektideer .idea-showcase:has(.idea-preview-screen):not([hidden]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.idea-feature-device.section-device-phone > .section-device-hardware {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.idea-feature-device.section-device-phone > .section-device-hardware::before,
.idea-feature-device.section-device-phone > .section-device-hardware::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
}
.idea-feature-device.section-device-phone > .section-device-hardware::before {
  top: calc(var(--rim) + 9px);
  width: 21%;
  height: 13px;
  background: #141b1d;
}
.idea-feature-device.section-device-phone > .section-device-hardware::after {
  bottom: calc(var(--rim) + 9px);
  width: 26%;
  height: 4px;
  background: #fff;
}
