/*
Theme Name: EP Kommunikation
Author: EP Kommunikation
Description: Ett skräddarsytt, lätt blocktema för EP Kommunikation.
Version: 1.4.7
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: ep-kommunikation
*/

html { scroll-behavior: smooth; }
body { text-wrap: pretty; }
body.admin-bar .ep-site-header { top: 32px; }

.ep-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  background: color-mix(in srgb, var(--wp--preset--color--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.ep-site-header .wp-block-navigation { font-size: 1.1rem; }

.ep-brand {
  display: grid !important;
  grid-template-columns: auto minmax(1rem, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  width: 100%;
  gap: var(--wp--preset--spacing--40);
}
.ep-brand > .wp-block-site-logo,
.ep-brand > .ep-wordmark { grid-column: 1; grid-row: 1; justify-self: start; }
.ep-brand > .wp-block-navigation { grid-column: 3; grid-row: 1; justify-self: end; }
.ep-site-logo { margin: 0; max-width: min(310px, 60vw); }
.ep-site-logo img { display: block; width: 100%; height: auto; max-height: 96px; object-fit: contain; object-position: center; }
.ep-brand:has(.custom-logo-link) .ep-wordmark { display: none; }
.ep-wordmark { letter-spacing: -.04em; }
.ep-wordmark a { text-decoration: none; }
.wp-block-button__link {
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.wp-block-button__link:hover { transform: translateY(-3px); }
.ep-start-project .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--lime);
}
.ep-kicker { font-family: var(--wp--preset--font-family--sans); letter-spacing: .12em; text-transform: uppercase; }
.ep-display { font-family: var(--wp--preset--font-family--sans); letter-spacing: -.05em; text-wrap: balance; }
.ep-editorial { font-family: var(--wp--preset--font-family--serif); font-weight: 400; letter-spacing: -.025em; }

.ep-hero {
  width: calc(100% - 2 * var(--wp--preset--spacing--30));
  max-width: var(--wp--style--global--wide-size, 1280px) !important;
  min-height: min(790px, calc(100svh - 86px));
  margin-inline: auto !important;
  overflow: clip;
}
.ep-hero > .wp-block-column { min-width: 0; }
.ep-hero > .wp-block-column:first-child > p.has-large-font-size {
  font-size: clamp(1.215rem, .99rem + .9vw, 1.8rem) !important;
}
@media (min-width: 782px) {
  .ep-hero > .wp-block-column:first-child { transform: translateY(-.4rem); }
}
.ep-hero__visual {
  position: relative;
  min-height: 520px;
  background:
    radial-gradient(circle at 82% 16%, rgba(255,255,255,.08) 0 1px, transparent 2px),
    var(--wp--preset--color--ink);
  background-size: 22px 22px, auto;
  overflow: hidden;
  isolation: isolate;
}
.ep-hero__visual::before,
.ep-hero__visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  will-change: transform;
}
.ep-hero__visual::before {
  width: 74%; aspect-ratio: 1; right: -18%; top: -12%;
  background: var(--wp--preset--color--signal);
  animation: ep-orbit 5s cubic-bezier(.2,.75,.25,1) both;
}
.ep-hero__visual::after {
  width: 52%; aspect-ratio: 1; left: 10%; bottom: -24%;
  border: clamp(35px, 6vw, 80px) solid var(--wp--preset--color--lime);
  animation: ep-ring 5s cubic-bezier(.2,.75,.25,1) both;
}
.ep-motion {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
}
.ep-motion::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.32) 1px, transparent 1px);
  background-size: clamp(54px, 8vw, 92px) clamp(54px, 8vw, 92px);
  mask-image: linear-gradient(145deg, transparent 6%, #000 46%, transparent 92%);
  animation: ep-grid 5s ease-out both;
}
.ep-hero__tile {
  position: absolute;
  z-index: 2;
  left: 8%; top: 11%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 49%; aspect-ratio: 4 / 5;
  padding: clamp(1rem, 2.5vw, 2rem);
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,59,92,.24);
  color: white;
  box-shadow: 0 28px 70px rgba(0,0,0,.16);
  backdrop-filter: blur(7px);
  transform: rotate(-6deg);
  transform-origin: 50% 50%;
  animation: ep-card-float 5s cubic-bezier(.2,.75,.25,1) both;
}
.ep-motion__monogram {
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.11em;
}
.ep-motion__studio {
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.45);
  font-size: clamp(.65rem, 1vw, .82rem);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ep-motion__services {
  position: absolute;
  z-index: 4;
  top: 34%;
  right: 6%;
  display: grid;
  gap: .5rem;
  width: 45%;
}
.ep-motion__services span {
  justify-self: end;
  padding: .7rem .85rem;
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  font-size: clamp(.7rem, 1.2vw, .92rem);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
  animation: ep-service 4.4s cubic-bezier(.2,.75,.25,1) .2s both;
}
.ep-motion__services span:nth-child(2) {
  margin-right: 13%;
  background: var(--wp--preset--color--lime);
  animation-delay: .35s;
}
.ep-motion__services span:nth-child(3) {
  margin-right: 3%;
  background: var(--wp--preset--color--signal);
  color: white;
  animation-delay: .5s;
}
.ep-motion__dot {
  position: absolute;
  z-index: 3;
  right: 10%;
  top: 12%;
  width: clamp(12px, 2vw, 22px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wp--preset--color--lime);
  box-shadow: 0 0 0 9px rgba(70,152,203,.16);
  animation: ep-dot 4s ease-in-out infinite;
}
.ep-motion__label {
  position: absolute;
  z-index: 4;
  right: 7%;
  bottom: 7%;
  margin: 0;
  color: white;
  font-size: clamp(.68rem, 1.2vw, .9rem);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.ep-motion__label i {
  margin-inline: .35em;
  color: var(--wp--preset--color--lime);
  font-style: normal;
}

@keyframes ep-orbit {
  0% { transform: translate3d(12%, -10%, 0) scale(.9); opacity: .55; }
  100% { transform: translate3d(0,0,0) scale(1); opacity: 1; }
}
@keyframes ep-ring {
  0% { transform: translate3d(-12%, 14%, 0) scale(.88); opacity: .55; }
  100% { transform: translate3d(0,0,0) scale(1); opacity: 1; }
}
@keyframes ep-grid {
  from { opacity: 0; }
  to { opacity: .16; }
}
@keyframes ep-card-float {
  0% { transform: translate3d(-5%, 7%, 0) rotate(-10deg); opacity: 0; }
  100% { transform: translate3d(0,0,0) rotate(-6deg); opacity: 1; }
}
@keyframes ep-service {
  from { transform: translateX(18%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes ep-dot {
  0%, 100% { transform: scale(.75); opacity: .7; }
  50% { transform: scale(1); opacity: 1; }
}

.ep-card {
  height: 100%;
  border-top: 1px solid currentColor;
  transition: transform .25s ease, background-color .25s ease;
}
.ep-card:hover { transform: translateY(-5px); }
.ep-card a { text-decoration: none; }
.ep-arrow::after { content: " ↗"; display: inline-block; transition: transform .2s ease; }
.ep-arrow:hover::after { transform: translate(3px,-3px); }

.ep-latest-posts .wp-block-post-template { align-items: stretch; }
.ep-latest-posts .wp-block-post { display: flex; }
.ep-latest-posts .ep-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.ep-latest-posts__title {
  font-size: clamp(1.215rem, .99rem + .9vw, 1.8rem) !important;
}
.ep-latest-posts__title a::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}
.ep-latest-posts .wp-block-post-excerpt {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.ep-latest-posts .wp-block-post-excerpt__more-link {
  position: relative;
  z-index: 2;
  margin-top: auto;
}
.ep-why-section {
  border-bottom: 10px solid color-mix(in srgb, var(--wp--preset--color--signal) 75%, transparent);
}

.ep-services-intro { max-width: 48rem; }
.ep-service-jump {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
  border-block: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.ep-service-jump a {
  min-width: 0;
  padding: 1rem .75rem 1rem 0;
  color: inherit;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.ep-service-jump a + a { padding-left: .75rem; }
.ep-service-area {
  scroll-margin-top: clamp(6rem, 10vw, 8rem);
  padding-block: var(--wp--preset--spacing--60);
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.ep-service-area:first-of-type { border-top: 0; }
.ep-service-area__title { max-width: 42rem; }
.ep-service-area__description { max-width: 46rem; }
.ep-service-category-link { margin-top: var(--wp--preset--spacing--40); font-weight: 700; }
.ep-service-category-link a { color: inherit; }

.ep-project-card { position: relative; overflow: hidden; }
.ep-project-card .wp-block-post-featured-image { margin: 0; overflow: hidden; background: var(--wp--preset--color--mist); }
.ep-project-card .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.ep-project-card:hover .wp-block-post-featured-image img { transform: scale(1.025); }

.ep-product-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  gap: .75rem;
  margin-top: var(--wp--preset--spacing--40);
  padding-bottom: .75rem;
}
body.tax-ep_product_category .ep-product-filters {
  margin-top: calc(var(--wp--preset--spacing--50) + 1.5rem);
}
.ep-product-filters .wp-block-button { margin: 0; }
.ep-product-filters .wp-block-button__link {
  border: 2px solid var(--wp--preset--color--ink);
}
.ep-product-filters .is-current .wp-block-button__link {
  color: var(--wp--preset--color--white);
  background-color: var(--wp--preset--color--ink);
}
.ep-product-filters .wp-block-button:not(.is-current) .wp-block-button__link {
  color: var(--wp--preset--color--ink);
  background-color: transparent;
}
.ep-product-filters .wp-block-button:not(.is-current) .wp-block-button__link:hover {
  color: var(--wp--preset--color--lime);
  background-color: transparent;
  border-color: var(--wp--preset--color--lime);
}
.ep-product-grid { margin-top: var(--wp--preset--spacing--50); }
.ep-product-grid .wp-block-post-template {
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.ep-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 12px 38px rgba(0,0,0,.13);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ep-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,.2);
}
.ep-product-card > .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
  background: var(--wp--preset--color--mist);
}
.ep-product-card > .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}
.ep-product-card:hover > .wp-block-post-featured-image img { transform: scale(1.025); }
.ep-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.ep-product-card__body > :last-child { margin-bottom: 0; }
.ep-product-card__body .wp-block-post-title { margin-bottom: .8rem; }
.ep-product-card__body .wp-block-post-title a { color: inherit; text-decoration: none; }
.ep-product-card__body .wp-block-post-title a::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}
.ep-product-card__body .wp-block-post-excerpt { margin-bottom: 0; }
.ep-product-card__body .wp-block-post-excerpt__excerpt { margin-bottom: 1rem; }
.ep-product-card__category { position: relative; z-index: 2; margin-bottom: .65rem; color: var(--wp--preset--color--lapis); }
.ep-product-card__category a { color: inherit; text-decoration: none; }
.ep-product-section .ep-product-card a:not(.wp-block-button__link):hover { color: inherit; }
.ep-product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.ep-product-price span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.ep-product-price strong { font-size: 1rem; text-align: right; }
.ep-product-cta { position: relative; z-index: 2; width: 100%; }
.ep-product-cta .wp-block-button__link { display: block; box-sizing: border-box; width: 100%; text-align: center; }
.ep-product-cta .wp-block-button__link:hover { transform: none; }
.ep-product-section .ep-product-cta .wp-block-button__link:hover { color: var(--wp--preset--color--white); }
.ep-product-inquiry {
  max-width: 42rem;
  margin-top: var(--wp--preset--spacing--40);
  padding-top: 1.2rem;
  border-top: 2px solid var(--wp--preset--color--ink);
}
.ep-product-inquiry .ep-product-inquiry__category {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0;
  background: transparent;
  color: var(--wp--preset--color--ink);
  font-size: .7rem;
}
.ep-product-inquiry h2 {
  max-width: 100%;
  margin: 0 0 .65rem;
  font-family: var(--wp--preset--font-family--sans);
  font-size: clamp(2.5rem, 3.8vw, 4.5rem);
  line-height: .96;
  letter-spacing: -.055em;
}
.ep-product-inquiry__excerpt {
  max-width: 38rem;
  margin-bottom: 1.15rem;
  font-size: clamp(1.15rem, 1rem + .55vw, 1.5rem);
  line-height: 1.45;
}
.ep-product-inquiry .ep-product-price {
  margin: 0;
  padding: 1rem .15rem 0;
  border-top-width: 2px;
}
.ep-product-inquiry .ep-product-price strong { font-size: 1.05rem; }
.ep-product-inquiry > :last-child { margin-bottom: 0; }
.ep-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--wp--preset--color--mist) 0 49.5%, var(--wp--preset--color--lime) 50%);
  color: var(--wp--preset--color--ink);
}
.ep-placeholder span { max-width: 14rem; padding: .8rem 1rem; background: var(--wp--preset--color--paper); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; }

.ep-meta { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.ep-breadcrumbs a { color: inherit; }
body.single-post main :where(.wp-block-post-featured-image, .wp-block-image, .wp-block-gallery) img {
  border-radius: 12px;
}
body.single-ep_product main .wp-block-post-featured-image img {
  border-radius: 12px;
}
.ep-contact-band { overflow: hidden; }
.ep-contact-band a { color: inherit; }
.ep-contact-details { font-style: normal; }
.ep-footer__intro { max-width: 30rem; color: rgba(255,255,255,.78); }
.wp-block-template-part footer .ep-contact-details,
footer .ep-contact-details { line-height: 1.75; }
.wp-block-template-part footer .ep-contact-details a,
footer .ep-contact-details a {
	color: inherit;
	text-decoration: none;
}
.wp-block-template-part footer .ep-contact-details a:hover,
footer .ep-contact-details a:hover { color: var(--wp--preset--color--lime); }
.ep-form-placeholder { border: 1px dashed currentColor; }

.ep-contact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .48fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.ep-product-inquiry-page .ep-contact-intro {
  grid-template-columns: minmax(0, 1fr) minmax(330px, .66fr);
  column-gap: clamp(2.5rem, 7vw, 7rem);
}
.ep-contact-intro__copy { grid-column: 1; grid-row: 1 / -1; }
.ep-contact-intro__lead { max-width: 52rem; }
.ep-contact-motion {
  position: relative;
  grid-column: 2;
  grid-row: 1 / -1;
  justify-self: end;
  width: min(100%, 340px);
  min-height: 285px;
  overflow: hidden;
  isolation: isolate;
}
.ep-contact-product-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1 / -1;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  margin: 0;
}
.ep-contact-product-visual__link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease;
}
.ep-contact-product-visual__link:hover { transform: translateY(-5px); }
.ep-contact-product-visual__media {
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
  padding: .7rem;
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--ink);
  background: transparent;
}
.ep-contact-product-visual__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ep-contact-product-visual__placeholder {
  display: grid;
  height: 100%;
  box-sizing: border-box;
  place-items: center;
  padding: 1rem;
  background: var(--wp--preset--color--mist);
  text-align: center;
}
.ep-contact-motion__orbit {
  position: absolute;
  width: 210px;
  aspect-ratio: 1;
  right: -36px;
  top: 18px;
  border: 30px solid color-mix(in srgb, var(--wp--preset--color--lime) 32%, transparent);
  border-radius: 50%;
  animation: ep-contact-orbit 1.6s cubic-bezier(.2,.75,.25,1) both;
}
.ep-contact-motion__message {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 34px;
  width: min(225px, 74%);
  min-height: 175px;
  box-sizing: border-box;
  padding: 1.25rem;
  border: 2px solid color-mix(in srgb, var(--wp--preset--color--ink) 70%, transparent);
  background: color-mix(in srgb, var(--wp--preset--color--lime) 9%, var(--wp--preset--color--paper));
  color: var(--wp--preset--color--ink);
  transform: rotate(-3deg);
  animation: ep-contact-message 1.35s cubic-bezier(.2,.75,.25,1) both;
}
.ep-contact-motion__eyebrow {
  display: block;
  margin-bottom: 1.35rem;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ep-contact-motion__message strong {
  display: block;
  margin-bottom: 1.1rem;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  line-height: .8;
  letter-spacing: -.08em;
}
.ep-contact-motion__line {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: .55rem;
  background: color-mix(in srgb, var(--wp--preset--color--ink) 45%, transparent);
  transform-origin: left;
  animation: ep-contact-line 1s ease-out .6s both;
}
.ep-contact-motion__line--short { width: 62%; animation-delay: .8s; }
.ep-contact-motion__reply {
  position: absolute;
  z-index: 3;
  right: 3px;
  bottom: 28px;
  padding: .75rem 1rem;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--white);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  animation: ep-contact-reply 1.2s cubic-bezier(.2,.75,.25,1) .25s both;
}
.ep-contact-motion__reply b { color: var(--wp--preset--color--lime); }
.ep-contact-motion__dot {
  position: absolute;
  z-index: 4;
  right: 22px;
  top: 22px;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wp--preset--color--signal);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--wp--preset--color--signal) 13%, transparent);
  animation: ep-contact-dot 3.2s ease-in-out infinite;
}
@keyframes ep-contact-orbit {
  from { transform: translate3d(22%, -15%, 0) scale(.86); }
  to { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}
@keyframes ep-contact-message {
  from { transform: translate3d(-10%, 10%, 0) rotate(-7deg); }
  to { transform: translate3d(0, 0, 0) rotate(-3deg); opacity: 1; }
}
@keyframes ep-contact-line {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes ep-contact-reply {
  from { transform: translate3d(15%, 15%, 0); }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}
@keyframes ep-contact-dot {
  0%, 100% { transform: scale(.72); opacity: .65; }
  50% { transform: scale(1); opacity: 1; }
}
.ep-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-top: var(--wp--preset--spacing--40);
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 28%, transparent);
}
.ep-contact-panel,
.ep-contact-form-panel { min-width: 0; padding-top: var(--wp--preset--spacing--30); }
.ep-contact-panel {
  position: relative;
  overflow: hidden;
  padding-right: clamp(1rem, 3vw, 3rem);
  isolation: isolate;
}
.ep-contact-panel > * { position: relative; z-index: 1; }
.ep-product-switch a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: .72rem 1rem;
  border: 2px solid var(--wp--preset--color--ink);
  background: transparent;
  color: var(--wp--preset--color--ink);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.ep-product-switch a:hover {
  border-color: var(--wp--preset--color--lime);
  background: transparent;
  color: var(--wp--preset--color--lime);
}
.ep-contact-panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: clamp(160px, 22vw, 300px);
  aspect-ratio: 1;
  right: -25%;
  bottom: 4%;
  border: clamp(24px, 3vw, 46px) solid color-mix(in srgb, var(--wp--preset--color--lime) 18%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.ep-product-inquiry-page .ep-contact-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 4.5rem;
  aspect-ratio: 1;
  right: 10%;
  top: 34%;
  border: 2px solid color-mix(in srgb, var(--wp--preset--color--signal) 70%, transparent);
  transform: rotate(10deg);
  pointer-events: none;
}
.ep-product-inquiry-page .ep-contact-list { display: none; }
.ep-product-inquiry-page .ep-contact-form-panel {
  padding-left: 0;
  border: 0;
}
.ep-contact-form-panel {
  padding-left: clamp(2rem, 4vw, 4rem);
  border-left: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 20%, transparent);
}
.ep-contact-list { margin-top: var(--wp--preset--spacing--40); }
.ep-contact-list__item {
  position: relative;
  padding-block: 1.35rem;
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 22%, transparent);
}
.ep-contact-list__item:nth-child(3)::after {
  content: "";
  position: absolute;
  width: 3.5rem;
  aspect-ratio: 1;
  right: 5%;
  top: 1.25rem;
  border: 2px solid color-mix(in srgb, var(--wp--preset--color--signal) 70%, transparent);
  transform: rotate(10deg);
  pointer-events: none;
}
.ep-contact-list__item .ep-kicker { margin-bottom: .55rem; font-size: .75rem; }
.ep-contact-list__primary {
  display: inline-block;
  max-width: 100%;
  color: var(--wp--preset--color--ink);
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
body:not(.ep-product-inquiry-page) .ep-contact-list__primary { text-decoration: none; }
.ep-contact-list__item address { font-size: 1.2rem; font-style: normal; line-height: 1.5; }
.ep-contact-list__company {
  margin-top: 1.5rem;
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.6;
}
.ep-contact-form-panel .wpcf7 { margin-top: var(--wp--preset--spacing--30); }
.ep-product-inquiry-page .ep-contact-form-panel .wpcf7 { margin-top: 0; }
.ep-product-form-intro {
  max-width: 42rem;
  margin: 0 0 var(--wp--preset--spacing--40);
  font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem);
  line-height: 1.55;
}

.wpcf7 { max-width: 56rem; margin-top: var(--wp--preset--spacing--40); }
.ep-cf7-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.ep-cf7-grid > p { margin: 0; }
.ep-cf7-grid > p:has(.ep-cf7-field--full) { grid-column: 1 / -1; }
.ep-cf7-field { display: block; font-weight: 600; }
.ep-cf7-field br { display: none; }
.ep-cf7-field .wpcf7-form-control-wrap { display: block; margin-top: .45rem; }
.wpcf7 :where(input:not([type="submit"]):not([type="checkbox"]), select, textarea) {
  box-sizing: border-box;
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 35%, transparent);
  border-radius: 0;
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--ink);
  font: inherit;
}
.wpcf7 textarea { min-height: 11rem; resize: vertical; }
.wpcf7 :where(input:not([type="submit"]):not([type="checkbox"]), select, textarea):focus {
  border-color: var(--wp--preset--color--lime);
  outline: 2px solid color-mix(in srgb, var(--wp--preset--color--lime) 35%, transparent);
  outline-offset: 1px;
}
.ep-cf7-consent { margin-top: 1.25rem; }
.ep-cf7-consent .wpcf7-list-item { margin-left: 0; }
.ep-cf7-consent label { display: flex; align-items: flex-start; gap: .65rem; }
.ep-cf7-consent input { margin-top: .35rem; }
.ep-cf7-submit { margin-top: 1.5rem; }
.ep-cf7-assurance {
  margin: .8rem 0 0;
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
}
.wpcf7 input[type="submit"] {
  padding: 1rem 1.65rem;
  border: 0;
  border-radius: 0;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.wpcf7 input[type="submit"]:hover {
  transform: translateY(-3px);
  background: var(--wp--preset--color--lime);
}
.wpcf7 .wpcf7-not-valid-tip { margin-top: .35rem; color: var(--wp--preset--color--signal); font-size: .875rem; }
.wpcf7 form .wpcf7-response-output { margin: 1.5rem 0 0; padding: 1rem; border: 2px solid var(--wp--preset--color--ink); }
body .wpcf7 form.sent .wpcf7-response-output { border-color: var(--wp--preset--color--lime); }

:where(.has-ink-background-color, .has-lapis-background-color, .has-signal-background-color) a { color: inherit; }
:where(.has-ink-background-color, .has-lapis-background-color) a:hover { color: var(--wp--preset--color--lime); }
.has-signal-background-color a:hover { color: var(--wp--preset--color--mist); }

.ep-contact-band {
  position: relative;
  isolation: isolate;
}
.ep-contact-band > * { position: relative; z-index: 1; }
.ep-contact-band::before,
.ep-contact-band::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.ep-contact-band::before {
  width: clamp(180px, 28vw, 430px);
  aspect-ratio: 1;
  right: -7%;
  top: -58%;
  border: clamp(28px, 4vw, 64px) solid color-mix(in srgb, var(--wp--preset--color--lime) 48%, transparent);
  border-radius: 50%;
}
.ep-contact-band::after {
  width: clamp(120px, 20vw, 300px);
  aspect-ratio: 1.35;
  right: 17%;
  bottom: -45%;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--lime) 72%, transparent);
  transform: rotate(-8deg);
}
.ep-contact-band .wp-block-button__link:hover {
  color: var(--wp--preset--color--ink);
  background-color: var(--wp--preset--color--white);
}

:where(a, button, input, textarea, select):focus-visible { outline: 3px solid var(--wp--preset--color--signal); outline-offset: 3px; }
::selection { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); }

@media (max-width: 1024px) {
  .ep-product-grid .wp-block-post-template { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .ep-contact-intro { grid-template-columns: 1fr; }
  .ep-contact-intro__copy,
  .ep-contact-product-visual { grid-column: 1; grid-row: auto; }
  .ep-contact-product-visual { justify-self: stretch; max-width: none; margin-top: var(--wp--preset--spacing--40); }
  .ep-contact-motion { display: none; }
  .ep-contact-layout { grid-template-columns: 1fr; }
  .ep-contact-panel { padding-right: 0; }
  .ep-contact-form-panel {
    padding-left: 0;
    padding-top: var(--wp--preset--spacing--50);
    border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 20%, transparent);
    border-left: 0;
  }
}

@media (max-width: 781px) {
  body.admin-bar .ep-site-header { top: 46px; }
  .ep-hero { width: 100%; min-height: auto; }
  .ep-hero > .wp-block-column { width: 100%; flex-basis: 100% !important; }
  .ep-hero .ep-display { overflow-wrap: anywhere; }
  .ep-hero__visual { min-height: 420px; }
  .ep-motion__services { right: 5%; width: 48%; }
  .ep-motion__services span { max-width: 100%; box-sizing: border-box; padding: .6rem .7rem; }
  .ep-motion__label { right: 5%; font-size: .62rem; letter-spacing: .08em; }
  .ep-brand { grid-template-columns: auto minmax(.5rem, 1fr) auto; gap: .5rem; }
  .ep-brand > .wp-block-site-logo,
  .ep-brand > .ep-wordmark { grid-column: 1; grid-row: 1; justify-self: start; }
  .ep-brand > .wp-block-navigation { grid-column: 3; grid-row: 1; justify-self: end; }
  .ep-site-logo { max-width: min(200px, 56vw); }
  .ep-site-logo img { max-height: 64px; }
  .ep-site-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
  .ep-service-jump { margin-bottom: var(--wp--preset--spacing--50); }
  .ep-service-area { padding-block: var(--wp--preset--spacing--50); }
}

@media (min-width: 561px) and (max-width: 781px) {
  .ep-services-intro,
  .ep-service-jump,
  .ep-service-area {
    width: calc(100% - 2rem);
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .ep-cf7-grid { grid-template-columns: 1fr; }
  .ep-cf7-grid > p:has(.ep-cf7-field--full) { grid-column: auto; }
  .ep-product-grid .wp-block-post-template { grid-template-columns: 1fr; }
  .ep-product-section .wp-block-post-template > .wp-block-post { display: none; }
  .ep-product-section .wp-block-post-template > .ep_product_category-digitalt:nth-child(1 of .ep_product_category-digitalt) {
    display: block;
    order: 1;
  }
  .ep-product-section .wp-block-post-template > .ep_product_category-identitet:nth-child(1 of .ep_product_category-identitet) {
    display: block;
    order: 2;
  }
  .ep-product-section .wp-block-post-template > .ep_product_category-tryck-profil:nth-child(1 of .ep_product_category-tryck-profil) {
    display: block;
    order: 3;
  }
  .ep-service-jump { grid-template-columns: 1fr; }
  .ep-service-jump a,
  .ep-service-jump a + a { padding-inline: 0; }
  .ep-service-jump a + a { border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
