:root {
  --h4-blue: #4b8dff;
  --h4-blue-bright: #2388ff;
  --h4-blue-light: #ddebff;
  --h4-blue-soft: #f3f8ff;
  --h4-violet: #7a4dff;
  --h4-violet-soft: #ece4ff;
  --h4-ink: #102a56;
  --h4-ink-soft: #35527a;
  --h4-white: #ffffff;
  --h4-line: #c8daf5;
  --h4-paper: #fafcff;
  --h4-shadow: 0 24px 60px rgba(16, 42, 86, 0.08);
  --h4-shadow-soft: 0 12px 32px rgba(16, 42, 86, 0.06);
  --h4-radius-xl: 2rem;
  --h4-radius-l: 1.5rem;
  --h4-radius-m: 1rem;
  --h4-radius-s: 0.75rem;
  --h4-brandmark-scale: 1;
  --h4-stable-viewport-height: 100svh;
  --h4-font-body: var(--wp--preset--font-family--body, "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --h4-font-display: var(--wp--preset--font-family--display, "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

:where(.wp-site-blocks) > * {
    margin-block-start: 0;
}

html {
  scroll-behavior: auto;
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(75, 141, 255, 0.18), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(122, 77, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  color: var(--h4-ink);
  font-family: var(--h4-font-body);
  margin: 0;
}

input,
textarea,
select {
  font-family: var(--h4-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading,
.wp-element-button,
.wp-block-button__link,
.h4m-brandmark a,
.h4m-hero-kicker,
.h4m-section-kicker,
.h4m-hero-subline,
.h4m-hero-tag,
.h4m-band-number,
.h4m-band-keywords,
.h4m-band-label,
.h4m-project-category,
.h4m-status-pill,
.h4m-disabled-button,
.h4m-footer-claim,
.h4m-legal-note-title {
  font-family: var(--h4-font-display);
}

.h4m-contact-shell::after,
.h4m-site-footer::before {
  font-family: var(--h4-font-display);
}

body.admin-bar .h4m-site-header {
  top: 32px;
}

a {
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.wp-element-button:focus-visible {
  outline: 3px solid rgba(35, 136, 255, 0.34);
  outline-offset: 3px;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.wp-element-button,
.wp-block-button__link {
  border: 1px solid transparent;
  box-shadow: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--h4-line);
  color: var(--h4-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--h4-white);
  border-color: rgba(75, 141, 255, 0.36);
  color: var(--h4-blue-bright);
}

.h4m-main {
  position: relative;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  left: 1rem;
  margin: 0;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.h4m-jump-target {
  display: block;
  height: 0;
  margin: 0;
  pointer-events: none;
  position: relative;
  visibility: hidden;
}

.h4m-menu-open {
  overflow: hidden;
}

.h4m-site-header {
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 90;
}

.h4m-site-header.is-scrolled {
  box-shadow: none;
}

.h4m-site-header.is-menu-open {
  pointer-events: auto;
}

.h4m-header-shell {
  align-items: center;
  gap: 1rem;
  min-height: 0;
  padding: 1rem clamp(1rem, 2vw, 1.5rem);
}

.h4m-header-nav-wrap {
  gap: 0.75rem;
  margin-inline-start: auto;
  pointer-events: auto;
}

.h4m-brandmark {
  min-width: fit-content;
  pointer-events: auto;
}

.h4m-site-title,
.h4m-brandlink {
  margin: 0;
}

.h4m-brandmark a {
  align-items: center;
  display: inline-flex;
  font-size: 0;
  gap: 0;
  height: 4rem;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  transform: translateZ(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  width: 4rem;
}

.h4m-brandmark a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.h4m-brandmark a::before {
  background: url("../img/logo/hoch4medien-mark.png") center / contain no-repeat;
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: 2.25rem;
  filter: drop-shadow(0 10px 24px rgba(7, 21, 49, 0.28));
  transform: scale(var(--h4-brandmark-scale));
  transform-origin: center;
  transition: transform 360ms cubic-bezier(0.22, 0.84, 0.3, 1);
  width: 2.25rem;
}

.h4m-footer-nav .wp-block-navigation__container {
  gap: 0.35rem 0.9rem;
}

.h4m-footer-nav .wp-block-navigation-item__content {
  border-radius: 999px;
  color: var(--h4-ink-soft);
  padding: 0.42rem 0.8rem;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.h4m-footer-nav .wp-block-navigation-item__content:hover {
  background: rgba(75, 141, 255, 0.1);
  color: var(--h4-blue-bright);
}

.h4m-footer-nav .wp-block-navigation__responsive-container {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.98));
}

.h4m-menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--h4-white);
  cursor: pointer;
  display: inline-flex;
  height: 4rem;
  justify-content: center;
  padding: 0;
  position: relative;
  pointer-events: auto;
  width: 4rem;
  z-index: 120;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.h4m-menu-toggle:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.h4m-menu-toggle-box {
  display: flex;
  position: relative;
  width: 2rem;
  height: 1.2rem;
}

.h4m-menu-line {
  background: var(--h4-white);
  border-radius: 999px;
  display: block;
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.h4m-menu-line-1 {
  top: 0;
}

.h4m-menu-line-2 {
  top: calc(50% - 1px);
}

.h4m-menu-line-3 {
  bottom: 0;
}

.h4m-site-header.is-menu-open .h4m-menu-line-1 {
  transform: translateY(0.55rem) rotate(45deg);
}

.h4m-site-header.is-menu-open .h4m-menu-line-2 {
  opacity: 0;
  transform: scaleX(0.4);
}

.h4m-site-header.is-menu-open .h4m-menu-line-3 {
  transform: translateY(-0.55rem) rotate(-45deg);
}

.h4m-menu-panel {
  background:
    radial-gradient(circle at 12% 16%, rgba(75, 141, 255, 0.28), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(122, 77, 255, 0.24), transparent 20%),
    linear-gradient(180deg, rgba(16, 42, 86, 0.84), rgba(10, 24, 56, 0.92));
  backdrop-filter: blur(28px);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transform: translateY(-1.5rem);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  visibility: hidden;
  z-index: 100;
}

.h4m-menu-panel::before {
  background: url("../img/logo/hoch4medien-mark.png") center / contain no-repeat;
  content: "";
  height: clamp(12rem, 24vw, 24rem);
  inset: auto 4% 4% auto;
  opacity: 0.14;
  filter: brightness(0) invert(1);
  position: absolute;
  width: clamp(12rem, 24vw, 24rem);
}

.h4m-site-header.is-menu-open .h4m-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  margin-block-start: 0;
}

.h4m-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: auto;
  max-width: 34rem;
  padding: clamp(6.5rem, 10vw, 8rem) clamp(1.2rem, 4vw, 3rem) clamp(2.2rem, 4vw, 3rem);
  position: relative;
  width: 100%;
  z-index: 1;
}

.h4m-menu-link {
  color: var(--h4-white);
  display: inline-block;
  font-family: var(--h4-font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
  opacity: 0;
  text-decoration: none;
  transform: translateX(-18px);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.h4m-site-header.is-menu-open .h4m-menu-link {
  animation: h4mMenuLinkIn 380ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.h4m-site-header.is-menu-open .h4m-menu-link:nth-child(2) {
  animation-delay: 60ms;
}

.h4m-site-header.is-menu-open .h4m-menu-link:nth-child(3) {
  animation-delay: 110ms;
}

.h4m-site-header.is-menu-open .h4m-menu-link:nth-child(4) {
  animation-delay: 160ms;
}

.h4m-site-header.is-menu-open .h4m-menu-link:nth-child(5) {
  animation-delay: 210ms;
}

.h4m-menu-link:hover {
  color: rgba(221, 235, 255, 0.92);
  transform: translateX(0.25rem);
}

@keyframes h4mMenuLinkIn {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes h4mHeroTitleIn {
  from {
    opacity: 0;
    transform: translateY(108%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.h4m-section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  position: relative;
  padding-left: 30px;
  padding-right: 30px;
}

.h4m-section-hero,
.h4m-section-services,
.h4m-section-projects,
.h4m-section-own-projects,
.h4m-section-about,
.h4m-section-contact {
  --h4-stack-dim: 0;
  min-height: auto;
  isolation: isolate;
  position: sticky;
  top: var(--h4-stack-offset, 0px);
}

.h4m-showcase-section-backdrop {
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.h4m-showcase-section-backdrop-media {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(34px) saturate(0.78) brightness(0.88);
  inset: -14%;
  opacity: 0;
  position: absolute;
  transform: translateZ(0) scale(1.38);
  transform-origin: center;
  transition:
    opacity 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 820ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 820ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, filter;
}

.h4m-showcase-section-backdrop-media.is-visible {
  opacity: 0.58;
  transform: translateZ(0) scale(1.22);
  filter: blur(24px) saturate(0.92) brightness(1);
}

.h4m-showcase-section-backdrop-media.is-entering {
  transition-duration: 560ms, 980ms, 980ms;
}

.h4m-showcase-section-backdrop-media.is-exiting {
  transition-duration: 420ms, 620ms, 620ms;
  will-change: opacity, transform, filter;
}

.h4m-showcase-section-backdrop::after {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(4, 9, 18, 0.34), rgba(4, 9, 18, 0.62));
  content: "";
  inset: 0;
  position: absolute;
}

.h4m-section-hero::after,
.h4m-section-services::after,
.h4m-section-projects::after,
.h4m-section-own-projects::after,
.h4m-section-about::after,
.h4m-section-contact::after {
  background: linear-gradient(180deg, rgba(2, 6, 14, 0.22), rgba(2, 6, 14, 0.96));
  content: "";
  inset: 0;
  opacity: var(--h4-stack-dim, 0);
  pointer-events: none;
  position: absolute;
  transition: opacity 140ms linear;
  z-index: 18;
}

.h4m-section-shell {
  margin-inline: auto;
  max-width: min(100%, 87.5rem);
  padding-inline: 0;
  width: 100%;
}

.h4m-section-shell > .h4m-section-kicker,
.h4m-section-shell > .h4m-section-title,
.h4m-section-shell > .h4m-section-intro {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.h4m-section-services > .h4m-section-shell,
.h4m-section-projects > .h4m-section-shell,
.h4m-section-own-projects > .h4m-section-shell,
.h4m-section-about > .h4m-section-shell,
.h4m-section-contact > .h4m-section-shell {
  bottom: auto;
  min-height: auto;
  position: relative;
  top: auto;
  z-index: 1;
}

.h4m-section-services,
.h4m-section-about,
.h4m-section-contact {
  --h4-section-edge-space: clamp(1.1rem, 2.8vw, 2.8rem);
}

.h4m-section-shell > .h4m-service-grid,
.h4m-section-shell > .h4m-project-stack,
.h4m-section-shell > .h4m-own-project-grid,
.h4m-section-shell > .h4m-about-columns {
  max-width: none !important;
  width: 100%;
}

.h4m-section-kicker {
  color: var(--h4-blue-bright);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.h4m-section-title {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin: 0;
  max-width: 14ch;
}

.h4m-section-title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.h4m-section-title-text {
  display: block;
  opacity: 0;
  transform: translateY(108%);
  transform-origin: center bottom;
  will-change: transform, opacity;
}

.h4m-section-title.h4m-observe.is-visible .h4m-section-title-text {
  animation: h4mHeroTitleIn 860ms cubic-bezier(0.18, 0.88, 0.24, 1) forwards;
}

.h4m-section-title.h4m-observe.is-visible .h4m-section-title-line:nth-child(2) .h4m-section-title-text {
  animation-delay: 140ms;
}

.h4m-section-intro {
  color: var(--h4-ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  margin: 1rem 0 0;
  max-width: 42rem;
}

.h4m-button-row {
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.h4m-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.h4m-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.h4m-section-hero {
  background: #071325;
  padding: 0;
  z-index: 0;
  margin-block-start: 0;
}

.h4m-hero-shell {
  padding: 0;
}

.h4m-hero-stage {
  align-items: flex-end;
  background: #071325;
  display: flex;
  isolation: isolate;
  min-height: var(--h4-stable-viewport-height, 100svh);
  overflow: hidden;
  padding: clamp(6.8rem, 10vw, 8.4rem) clamp(1.2rem, 4vw, 3rem) clamp(2.4rem, 4vw, 3rem);
  position: relative;
}

.h4m-hero-stage::before {
  background:
    linear-gradient(180deg, rgba(7, 21, 49, 0.12) 0%, rgba(7, 21, 49, 0.58) 100%),
    linear-gradient(90deg, rgba(7, 21, 49, 0.34) 0%, rgba(7, 21, 49, 0.08) 60%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.h4m-hero-stage::after {
  background: radial-gradient(circle, rgba(75, 141, 255, 0.22), transparent 66%);
  content: "";
  height: 34rem;
  pointer-events: none;
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 34rem;
  z-index: 1;
}

.h4m-hero-video-wrap {
  background: #071325;
  inset: 0;
  position: absolute;
  z-index: 0;
}

.h4m-hero-video {
  background: #071325;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.h4m-hero-copy {
  max-width: min(46rem, 100%);
  position: relative;
  z-index: 3;
}

.h4m-hero-kicker {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  margin: 0 0 1rem;
  padding: 0.6rem 0.95rem;
  text-transform: uppercase;
}

.h4m-hero-title {
  color: var(--h4-white);
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.9;
  margin: 0;
  max-width: 9ch;
  text-shadow: 0 16px 48px rgba(7, 21, 49, 0.36);
}

.h4m-hero-title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.h4m-hero-title-text {
  display: block;
  opacity: 0;
  transform: translateY(108%);
  transform-origin: center bottom;
  will-change: transform, opacity;
}

.h4m-hero-stage.is-visible .h4m-hero-title-text {
  animation: h4mHeroTitleIn 860ms cubic-bezier(0.18, 0.88, 0.24, 1) forwards;
}

.h4m-hero-stage.is-visible .h4m-hero-title-line:nth-child(2) .h4m-hero-title-text {
  animation-delay: 140ms;
}

.h4m-section-services {
  background:
    radial-gradient(circle at 12% 0%, #17346b 0%, transparent 30%),
    linear-gradient(180deg, #071325 0%, #10203d 100%);
  border-radius: 0;
  box-shadow: 0 -20px 38px rgba(4, 10, 20, 0.34);
  margin-top: 0;
  position: sticky;
  overflow: visible;
  z-index: 12;
}

.h4m-service-grid {
  --h4-masonry-row: 8px;
  display: grid;
  gap: 1.35rem;
  grid-auto-rows: auto;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

@media (min-width: 980px) {
  .h4m-service-grid {
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.h4m-service-grid.is-masonry {
  grid-auto-rows: var(--h4-masonry-row);
}

.h4m-service-band {
  --h4-card-inline-size: 100%;
  background: linear-gradient(135deg, #ffffff, #eef5ff);
  border: 1px solid rgba(200, 218, 245, 0.8);
  border-radius: 2rem 0.9rem 2rem 1.4rem;
  box-shadow: var(--h4-shadow-soft);
  display: block;
  height: auto;
  justify-self: start;
  margin: 0;
  max-width: var(--h4-card-inline-size);
  overflow: hidden;
  padding: clamp(1.3rem, 2.2vw, 2rem);
  position: relative;
  transform: none;
  width: 100%;
}

.h4m-service-band::before {
  background: linear-gradient(180deg, rgba(75, 141, 255, 0.18), rgba(122, 77, 255, 0.08));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 0.55rem;
}

.h4m-service-band-2 {
  background: linear-gradient(135deg, #f3edff, #ffffff);
}

.h4m-service-band-3 {
  background: linear-gradient(135deg, #e7f0ff, #ffffff);
}

.h4m-service-band-4 {
  background: linear-gradient(135deg, #f7fbff, #f0ebff);
}

.h4m-service-columns {
  gap: 1.4rem;
}

.h4m-service-meta {
  min-width: 0;
}

.h4m-band-number {
  color: rgba(75, 141, 255, 0.22);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.82;
  margin: 0;
}

.h4m-band-keywords {
  color: var(--h4-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0.8rem 0 0;
  text-transform: uppercase;
}

.h4m-band-label {
  color: var(--h4-blue-bright);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.h4m-band-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 0.98;
  margin: 0.25rem 0 0;
  max-width: 18ch;
}

.h4m-band-copy {
  color: var(--h4-ink-soft);
  margin: 0.8rem 0 0;
  max-width: 48rem;
}

.h4m-band-detail-grid {
  display: grid;
  gap: 1rem 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.3rem;
}

.h4m-band-detail {
  border-left: 2px solid rgba(75, 141, 255, 0.2);
  padding-left: 1rem;
}

.h4m-band-detail-title {
  font-size: 1.03rem;
  margin: 0;
}

.h4m-band-detail-copy {
  color: var(--h4-ink-soft);
  font-size: 0.97rem;
  margin: 0.42rem 0 0;
}

.h4m-section-projects {
  background:
    radial-gradient(circle at 88% 12%, #27174f 0%, transparent 28%),
    linear-gradient(180deg, #040912 0%, #0a1326 100%);
  border-radius: 0;
  box-shadow: 0 -20px 38px rgba(2, 5, 12, 0.42);
  margin-top: -2.6rem;
  overflow: visible;
  z-index: 14;
}

.h4m-showcase-track,
.h4m-project-stack,
.h4m-own-project-grid {
  --h4-carousel-card-height: 28.75rem;
  --h4-project-peek: clamp(0.9rem, 4vw, 3.75rem);
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.35rem);
  margin-top: 2rem;
  margin-inline: calc(var(--h4-project-peek) * -1);
  overflow-x: auto;
  overflow-y: visible;
  padding-inline: var(--h4-project-peek);
  scroll-padding-inline: var(--h4-project-peek);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
}

.h4m-section-shell > .wp-block-h4m-showcase-carousel.h4m-project-stack,
.h4m-section-shell > .wp-block-h4m-showcase-carousel.h4m-own-project-grid,
.h4m-section-shell > .h4m-project-stack,
.h4m-section-shell > .h4m-own-project-grid {
  --h4-project-peek: 0;
  box-sizing: border-box;
  left: auto !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: none !important;
  padding-inline: 0 !important;
  position: relative;
  scroll-padding-inline: 0;
  width: auto !important;
}

.h4m-project-stack::-webkit-scrollbar {
  display: none;
}

.h4m-own-project-grid::-webkit-scrollbar {
  display: none;
}

.h4m-showcase-card,
.h4m-project-card,
.h4m-own-project-card {
  --h4-card-inline-size: min(82vw, 72rem);
  --h4-card-max-inline-size: min(25rem, calc(100vw - 1rem));
  --h4-showcase-gradient-from: #ffffff;
  --h4-showcase-gradient-to: #e7f0ff;
  --h4-showcase-card-background: linear-gradient(180deg, var(--h4-showcase-gradient-from), var(--h4-showcase-gradient-to));
  --h4-showcase-card-border: rgba(200, 218, 245, 0.82);
  --h4-showcase-card-title: var(--h4-ink);
  --h4-showcase-card-copy: var(--h4-ink-soft);
  --h4-showcase-card-tag-text: var(--h4-showcase-card-title);
  --h4-showcase-card-chip-background: color-mix(in srgb, var(--h4-showcase-card-tag-text) 12%, transparent);
  --h4-showcase-card-chip-border: color-mix(in srgb, var(--h4-showcase-card-tag-text) 26%, transparent);
  --h4-showcase-card-chip-background-hover: color-mix(in srgb, var(--h4-showcase-card-tag-text) 18%, transparent);
  --h4-showcase-card-chip-border-hover: color-mix(in srgb, var(--h4-showcase-card-tag-text) 34%, transparent);
  --h4-showcase-card-button-background: rgba(255, 255, 255, 0.72);
  --h4-showcase-card-button-border: var(--h4-line);
  --h4-showcase-card-button-text: var(--h4-ink);
  --h4-showcase-card-button-hover-background: #ffffff;
  --h4-showcase-card-button-hover-border: rgba(75, 141, 255, 0.36);
  --h4-showcase-card-button-hover-text: var(--h4-blue-bright);
  --h4-showcase-card-placeholder-background: rgba(255, 255, 255, 0.82);
  --h4-showcase-card-placeholder-border: rgba(75, 141, 255, 0.4);
  --h4-showcase-card-placeholder-text: var(--h4-ink-soft);
  align-self: start;
  backface-visibility: hidden;
  background: var(--h4-showcase-card-background);
  border: 0;
  box-shadow: var(--h4-shadow-soft);
  contain: paint;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  height: auto;
  inline-size: min(var(--h4-card-inline-size), var(--h4-card-max-inline-size));
  margin: 0;
  max-height: none;
  max-width: min(var(--h4-card-inline-size), var(--h4-card-max-inline-size));
  min-inline-size: min(var(--h4-card-inline-size), var(--h4-card-max-inline-size));
  overflow: hidden;
  padding: 1rem;
  position: relative;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  -webkit-backface-visibility: hidden;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  width: min(var(--h4-card-inline-size), var(--h4-card-max-inline-size));
}

.h4m-service-band.is-style-h4m-card-width-s {
  --h4-card-inline-size: 34rem;
}

.h4m-service-band.is-style-h4m-card-width-m {
  --h4-card-inline-size: 46rem;
}

.h4m-service-band.is-style-h4m-card-width-l {
  --h4-card-inline-size: 62rem;
}

.h4m-showcase-card.is-style-h4m-card-width-s,
.h4m-project-card.is-style-h4m-card-width-s,
.h4m-own-project-card.is-style-h4m-card-width-s {
  --h4-card-inline-size: min(72vw, 60rem);
}

.h4m-showcase-card.is-style-h4m-card-width-m,
.h4m-project-card.is-style-h4m-card-width-m,
.h4m-own-project-card.is-style-h4m-card-width-m {
  --h4-card-inline-size: min(82vw, 72rem);
}

.h4m-showcase-card.is-style-h4m-card-width-l,
.h4m-project-card.is-style-h4m-card-width-l,
.h4m-own-project-card.is-style-h4m-card-width-l {
  --h4-card-inline-size: min(92vw, 84rem);
}

.h4m-showcase-card,
.h4m-project-card {
  border-radius: 2rem 2rem 0.85rem 1.8rem;
  cursor: pointer;
  opacity: 0.46;
  transform: translateZ(0) scale(0.975);
  transition:
    opacity 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, box-shadow;
  z-index: 1;
}

.h4m-showcase-card.is-prev,
.h4m-project-card.is-prev,
.h4m-project-card.is-next {
  opacity: 0.2;
  transform: translateZ(0) scale(0.988);
}

.h4m-showcase-card.is-next,
.h4m-own-project-card.is-prev,
.h4m-own-project-card.is-next {
  opacity: 0.2;
  transform: translateZ(0) scale(0.988);
}

.h4m-showcase-card.is-active,
.h4m-project-card.is-active {
  box-shadow: 0 28px 62px rgba(4, 12, 24, 0.26);
  cursor: default;
  opacity: 1;
  transform: translateZ(0) scale(1);
  z-index: 2;
}

.h4m-showcase-card.is-far,
.h4m-project-card.is-far,
.h4m-own-project-card.is-far {
  opacity: 0.32;
  transform: translateZ(0) scale(0.965);
}

.h4m-own-project-card {
  cursor: pointer;
  opacity: 0.46;
  transform: translateZ(0) scale(0.975);
  transition:
    opacity 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, box-shadow;
  z-index: 1;
}

.h4m-own-project-card.is-active {
  box-shadow: 0 28px 62px rgba(4, 12, 24, 0.26);
  cursor: default;
  opacity: 1;
  transform: translateZ(0) scale(1);
  z-index: 2;
}

.h4m-showcase-card.is-background-sky,
.h4m-project-card.is-background-sky,
.h4m-own-project-card.is-background-sky {
  --h4-showcase-gradient-from: #ffffff;
  --h4-showcase-gradient-to: #e7f0ff;
}

.h4m-showcase-card.is-background-paper,
.h4m-project-card.is-background-paper,
.h4m-own-project-card.is-background-paper {
  --h4-showcase-gradient-from: #ffffff;
  --h4-showcase-gradient-to: #edf3ff;
}

.h4m-showcase-card.is-background-violet,
.h4m-project-card.is-background-violet,
.h4m-own-project-card.is-background-violet {
  --h4-showcase-gradient-from: #fbf8ff;
  --h4-showcase-gradient-to: #efe8ff;
}

.h4m-showcase-card.is-background-ink,
.h4m-project-card.is-background-ink,
.h4m-own-project-card.is-background-ink {
  --h4-showcase-gradient-from: #10203d;
  --h4-showcase-gradient-to: #17346b;
  --h4-showcase-card-border: rgba(185, 213, 255, 0.22);
  --h4-showcase-card-title: #ffffff;
  --h4-showcase-card-copy: rgba(235, 243, 255, 0.82);
  --h4-showcase-card-tag-text: #ffffff;
  --h4-showcase-card-button-background: rgba(255, 255, 255, 0.1);
  --h4-showcase-card-button-border: rgba(185, 213, 255, 0.34);
  --h4-showcase-card-button-text: #ffffff;
  --h4-showcase-card-button-hover-background: rgba(255, 255, 255, 0.16);
  --h4-showcase-card-button-hover-border: rgba(255, 255, 255, 0.52);
  --h4-showcase-card-button-hover-text: #ffffff;
  --h4-showcase-card-placeholder-background: rgba(255, 255, 255, 0.08);
  --h4-showcase-card-placeholder-border: rgba(185, 213, 255, 0.34);
  --h4-showcase-card-placeholder-text: #ffffff;
}

.h4m-showcase-card.is-background-night,
.h4m-project-card.is-background-night,
.h4m-own-project-card.is-background-night {
  --h4-showcase-gradient-from: #071325;
  --h4-showcase-gradient-to: #0b1324;
  --h4-showcase-card-border: rgba(185, 213, 255, 0.2);
  --h4-showcase-card-title: #ffffff;
  --h4-showcase-card-copy: rgba(235, 243, 255, 0.78);
  --h4-showcase-card-tag-text: #ffffff;
  --h4-showcase-card-button-background: rgba(255, 255, 255, 0.08);
  --h4-showcase-card-button-border: rgba(185, 213, 255, 0.28);
  --h4-showcase-card-button-text: #ffffff;
  --h4-showcase-card-button-hover-background: rgba(255, 255, 255, 0.14);
  --h4-showcase-card-button-hover-border: rgba(255, 255, 255, 0.48);
  --h4-showcase-card-button-hover-text: #ffffff;
  --h4-showcase-card-placeholder-background: rgba(255, 255, 255, 0.08);
  --h4-showcase-card-placeholder-border: rgba(185, 213, 255, 0.28);
  --h4-showcase-card-placeholder-text: #ffffff;
}

.h4m-showcase-track.is-repositioning > .h4m-showcase-card,
.h4m-project-stack.is-repositioning > .h4m-project-card,
.h4m-own-project-grid.is-repositioning > .h4m-own-project-card {
  transition-duration: 0ms !important;
}

.h4m-project-card-1 {
  grid-column: auto;
}

.h4m-project-card-2 {
  background: linear-gradient(180deg, #f3edff, #ffffff);
  grid-column: auto;
}

.h4m-project-card-3 {
  grid-column: auto;
}

.h4m-project-card-4 {
  grid-column: auto;
}

.h4m-project-card-5 {
  grid-column: auto;
}

.h4m-project-card-6 {
  background: linear-gradient(180deg, #ece4ff, #ffffff);
  grid-column: auto;
}

.h4m-project-image,
.h4m-own-project-image {
  flex: 0 0 auto;
  border-radius: 1.4rem;
  height: clamp(11.5rem, 24vw, 13.5rem);
  margin: 0 0 0.9rem;
  overflow: hidden;
}

.h4m-project-image img,
.h4m-own-project-image img {
  height: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.h4m-showcase-card.is-image-fit-cover .h4m-project-image img,
.h4m-showcase-card.is-image-fit-cover .h4m-own-project-image img,
.h4m-project-card.is-image-fit-cover .h4m-project-image img,
.h4m-project-card.is-image-fit-cover .h4m-own-project-image img,
.h4m-own-project-card.is-image-fit-cover .h4m-project-image img,
.h4m-own-project-card.is-image-fit-cover .h4m-own-project-image img {
  object-fit: cover;
}

.h4m-showcase-head {
  display: block;
}

.h4m-showcase-heading-group {
  min-width: 0;
}

.h4m-showcase-logo {
  display: none !important;
}

.h4m-showcase-logo img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.h4m-showcase-logo-placeholder {
  background: linear-gradient(135deg, rgba(75, 141, 255, 0.22), rgba(122, 77, 255, 0.18));
  color: var(--h4-ink);
  font-family: var(--h4-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.h4m-showcase-logo-placeholder span {
  line-height: 1;
}

.h4m-showcase-card .h4m-project-title,
.h4m-project-card .h4m-project-title,
.h4m-own-project-card .h4m-project-title,
.h4m-showcase-card .h4m-showcase-title,
.h4m-project-card .h4m-showcase-title,
.h4m-own-project-card .h4m-showcase-title {
  color: var(--h4-showcase-card-title);
}

.h4m-showcase-title {
  margin: 0;
  max-width: none;
}

.h4m-showcase-copy {
  flex: 1 1 auto;
  margin-top: 0.85rem;
}

.h4m-showcase-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.h4m-showcase-tag {
  background: var(--h4-showcase-card-chip-background);
  border: 1px solid var(--h4-showcase-card-chip-border);
  border-radius: 999px;
  color: var(--h4-showcase-card-tag-text);
  font-family: var(--h4-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.45rem 0.72rem;
}

.h4m-showcase-card .h4m-project-copy,
.h4m-project-card .h4m-project-copy,
.h4m-own-project-card .h4m-project-copy,
.h4m-showcase-card .h4m-showcase-copy,
.h4m-project-card .h4m-showcase-copy,
.h4m-own-project-card .h4m-showcase-copy {
  color: var(--h4-showcase-card-copy);
}

.h4m-project-category {
  color: var(--h4-blue-bright);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0.15rem 0 0;
  text-transform: uppercase;
}

.h4m-project-title {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  margin: 0.35rem 0 0;
}

.h4m-project-copy {
  color: var(--h4-ink-soft);
  font-size: 1rem;
  margin: 0.7rem 0 0;
  display: block;
  overflow: visible;
}

.h4m-project-title {
  display: block;
  overflow: visible;
}

.h4m-showcase-card .wp-block-buttons,
.h4m-showcase-card .h4m-disabled-button,
.h4m-project-card .wp-block-buttons,
.h4m-own-project-card .wp-block-buttons,
.h4m-own-project-card .h4m-disabled-button {
  margin-top: auto;
  padding-top: 0.95rem;
}

.h4m-showcase-card .wp-block-button.is-style-outline .wp-block-button__link,
.h4m-project-card .wp-block-button.is-style-outline .wp-block-button__link,
.h4m-own-project-card .wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--h4-showcase-card-chip-background);
  border-color: var(--h4-showcase-card-chip-border);
  color: var(--h4-showcase-card-tag-text);
}

.h4m-showcase-card .wp-block-button.is-style-outline .wp-block-button__link:hover,
.h4m-project-card .wp-block-button.is-style-outline .wp-block-button__link:hover,
.h4m-own-project-card .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--h4-showcase-card-chip-background-hover);
  border-color: var(--h4-showcase-card-chip-border-hover);
  color: var(--h4-showcase-card-tag-text);
}

.h4m-showcase-card .h4m-disabled-button,
.h4m-project-card .h4m-disabled-button,
.h4m-own-project-card .h4m-disabled-button {
  background: var(--h4-showcase-card-chip-background);
  border-color: var(--h4-showcase-card-chip-border);
  color: var(--h4-showcase-card-tag-text);
}

.h4m-project-carousel-controls {
  align-items: center;
  display: flex !important;
  gap: 0.85rem;
  justify-content: center !important;
  margin: 1.15rem auto 0 !important;
  padding-inline: 0 !important;
  width: max-content !important;
}

.h4m-section-shell > .h4m-project-carousel-controls {
  box-sizing: border-box;
  left: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: none !important;
  padding-inline: 0 !important;
  position: relative;
  width: max-content !important;
}

.h4m-project-carousel-arrow {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(185, 213, 255, 0.34);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--h4-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  height: 2.85rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  width: 2.85rem;
}

.h4m-project-carousel-arrow:hover,
.h4m-project-carousel-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.54);
  transform: translateY(-1px);
}

.h4m-project-carousel-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
}

.h4m-project-carousel-dots {
  align-items: center;
  display: flex;
  flex: 0 0 auto !important;
  gap: 0.5rem;
  justify-content: center;
}

.h4m-project-carousel-dot {
  appearance: none;
  background: rgba(185, 213, 255, 0.28);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 0.72rem;
  padding: 0;
  transition:
    background-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    width 180ms ease;
  width: 0.72rem;
}

.h4m-project-carousel-dot.is-active {
  background: #ffffff;
  transform: scale(1);
  width: 2.1rem;
}

.h4m-project-carousel-dot:not(.is-active) {
  opacity: 0.8;
  transform: scale(0.94);
}

.h4m-section-own-projects {
  background:
    radial-gradient(circle at 80% 10%, #1e2f61 0%, transparent 28%),
    linear-gradient(180deg, #0d1833 0%, #13264d 100%);
  border-radius: 0;
  box-shadow: 0 -20px 38px rgba(4, 10, 20, 0.34);
  margin-top: -2.6rem;
  overflow: visible;
  z-index: 16;
}

.h4m-own-project-card {
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  border-radius: 1.8rem 1.8rem 0.9rem 1.8rem;
}

.h4m-own-project-card-studio {
  grid-column: auto;
}

.h4m-own-project-card-game {
  background: linear-gradient(135deg, #e7f0ff, #f4eeff, #ffffff);
  grid-column: auto;
}

.h4m-own-project-card-app:nth-of-type(3) {
  grid-column: auto;
}

.h4m-own-project-card-app:nth-of-type(4) {
  grid-column: auto;
}

.h4m-own-project-card-app:nth-of-type(5) {
  grid-column: auto;
}

.h4m-own-project-card-youtube {
  background: linear-gradient(135deg, #efe8ff, #ffffff);
  grid-column: auto;
  overflow: visible;
}

.h4m-own-project-card-youtube::after {
  background: url("../svg/icons/play.svg") center / contain no-repeat;
  content: "";
  height: 4rem;
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  width: 4rem;
}

.h4m-status-pill,
.h4m-disabled-button {
  display: inline-flex;
  margin: 0.95rem 0 0;
}

.h4m-status-pill {
  background: rgba(75, 141, 255, 0.12);
  border-radius: 999px;
  color: var(--h4-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.46rem 0.8rem;
  text-transform: uppercase;
}

.h4m-disabled-button {
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed rgba(75, 141, 255, 0.4);
  border-radius: 999px;
  color: var(--h4-ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.72rem 1rem;
}

.h4m-section-about {
  background:
    radial-gradient(circle at 16% 14%, #183161 0%, transparent 28%),
    linear-gradient(180deg, #081121 0%, #0f1e39 100%);
  border-radius: 0;
  box-shadow: 0 -20px 38px rgba(3, 8, 17, 0.38);
  margin-top: -2.6rem;
  min-height: var(--h4-stable-viewport-height, 100svh);
  overflow: visible;
  z-index: 18;
}

.h4m-section-about > .wp-block-video.h4m-hero-video-wrap {
  inset: 0;
  margin: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.h4m-section-about > .wp-block-video.h4m-hero-video-wrap::after {
  background:
    linear-gradient(90deg, rgba(5, 10, 20, 0.78) 0%, rgba(5, 10, 20, 0.42) 44%, rgba(5, 10, 20, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.18) 0%, rgba(5, 10, 20, 0.72) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.h4m-section-about > .wp-block-video.h4m-hero-video-wrap video {
  display: block;
  height: 100%;
  min-height: var(--h4-stable-viewport-height, 100svh);
  object-fit: cover;
  width: 100%;
}

.h4m-section-about > .wp-block-video.h4m-hero-video-wrap ~ .h4m-section-shell {
  align-items: center;
  display: flex;
  min-height: var(--h4-stable-viewport-height, 100svh);
  position: relative;
  z-index: 2;
}

.h4m-section-about > .wp-block-video.h4m-hero-video-wrap ~ .h4m-section-shell .h4m-about-columns {
  align-items: stretch;
  min-height: min(var(--h4-stable-viewport-height, 100svh), 56rem);
  width: 100%;
}

.h4m-section-about > .wp-block-video.h4m-hero-video-wrap ~ .h4m-section-shell .h4m-about-visual:empty {
  display: none;
}

.h4m-section-about > .wp-block-video.h4m-hero-video-wrap ~ .h4m-section-shell .h4m-about-copy {
  backdrop-filter: blur(16px);
  background: rgba(7, 19, 37, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  box-shadow: 0 24px 56px rgba(2, 8, 18, 0.34);
  flex-basis: min(42rem, 100%) !important;
  margin-inline-start: auto;
  padding: clamp(1.4rem, 2vw, 2rem);
}

.h4m-section-about > .wp-block-video.h4m-hero-video-wrap ~ .h4m-section-shell .h4m-values-grid {
  margin-top: 1.35rem;
}

.h4m-about-columns {
  gap: clamp(1.7rem, 4vw, 3rem);
}

.h4m-about-visual {
  position: relative;
}

.h4m-about-visual::before {
  background: linear-gradient(160deg, rgba(75, 141, 255, 0.16), rgba(122, 77, 255, 0.08));
  border-radius: 38% 62% 58% 42% / 42% 42% 58% 58%;
  content: "";
  inset: -2rem 8% auto -2rem;
  position: absolute;
  z-index: 0;
}

.h4m-about-portrait {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(200, 218, 245, 0.9);
  border-radius: 2rem;
  box-shadow: var(--h4-shadow);
  margin: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.h4m-about-portrait img {
  aspect-ratio: 5 / 6;
  object-fit: cover;
  width: 100%;
}

.h4m-values-grid {
  display: grid;
  gap: 0.95rem 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.h4m-value-item {
  border-top: 1px solid rgba(200, 218, 245, 0.8);
  padding-top: 0.85rem;
}

.h4m-value-title {
  font-size: 1.03rem;
  margin: 0;
}

.h4m-value-item p {
  color: var(--h4-ink-soft);
  margin: 0.45rem 0 0;
}

.h4m-section-contact {
  background:
    radial-gradient(circle at 100% 0%, #26164b 0%, transparent 26%),
    linear-gradient(180deg, #050a14 0%, #0a1324 100%);
  border-radius: 0;
  box-shadow: 0 -20px 38px rgba(2, 5, 12, 0.42);
  margin-top: -2.6rem;
  overflow: visible;
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  z-index: 20;
}

.h4m-contact-shell {
  background: linear-gradient(135deg, #ffffff, #eef5ff);
  border: 1px solid rgba(200, 218, 245, 0.9);
  border-radius: 2.2rem;
  box-shadow: var(--h4-shadow);
  padding: clamp(1.5rem, 3vw, 2.6rem);
  position: relative;
}

.h4m-section-services .h4m-section-kicker,
.h4m-section-projects .h4m-section-kicker,
.h4m-section-own-projects .h4m-section-kicker,
.h4m-section-about .h4m-section-kicker,
.h4m-section-contact .h4m-section-kicker {
  color: #b9d5ff;
}

.h4m-section-services .h4m-section-title,
.h4m-section-projects .h4m-section-title,
.h4m-section-own-projects .h4m-section-title,
.h4m-section-about .h4m-section-title,
.h4m-section-contact .h4m-section-title {
  color: #ffffff;
}

.h4m-section-services .h4m-section-intro,
.h4m-section-projects .h4m-section-intro,
.h4m-section-own-projects .h4m-section-intro,
.h4m-section-about .h4m-section-intro,
.h4m-section-contact .h4m-section-intro,
.h4m-section-about .h4m-value-item p,
.h4m-section-contact .h4m-contact-meta,
.h4m-section-contact .h4m-contact-note {
  color: rgba(235, 243, 255, 0.82);
}

.h4m-section-about .h4m-value-item {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.h4m-section-about .h4m-value-title {
  color: #ffffff;
}

.h4m-contact-shell::after {
  color: rgba(75, 141, 255, 0.12);
  content: "4";
  font-size: clamp(9rem, 20vw, 16rem);
  font-weight: 700;
  line-height: 0.8;
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  z-index: 0;
}

.h4m-contact-shell > * {
  position: relative;
  z-index: 1;
}

.h4m-contact-meta,
.h4m-contact-note {
  color: var(--h4-ink-soft);
  margin: 1rem 0 0;
}

.h4m-site-footer {
  background:
    linear-gradient(180deg, rgba(221, 235, 255, 0.92), rgba(243, 248, 255, 0.98));
  border-top: 1px solid rgba(200, 218, 245, 0.85);
  overflow: clip;
  position: relative;
}

.h4m-site-footer::before {
  color: rgba(75, 141, 255, 0.12);
  content: "4";
  font-size: clamp(16rem, 34vw, 30rem);
  font-weight: 700;
  line-height: 0.78;
  position: absolute;
  right: -1rem;
  top: -1rem;
}

.h4m-version-chip {
  display: block;
  bottom: clamp(0.8rem, 2vw, 1.25rem);
  position: fixed;
  right: clamp(0.8rem, 2vw, 1.25rem);
  z-index: 90;
}

.h4m-version-toggle {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(7, 19, 37, 0.72);
  border: 1px solid rgba(185, 213, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(4, 10, 20, 0.2);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--h4-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  height: 2.5rem;
  justify-content: center;
  list-style: none;
  width: 2.5rem;
}

.h4m-version-toggle::-webkit-details-marker {
  display: none;
}

.h4m-version-popover {
  backdrop-filter: blur(18px);
  background: rgba(7, 19, 37, 0.86);
  border: 1px solid rgba(185, 213, 255, 0.24);
  border-radius: 1rem;
  bottom: calc(100% + 0.65rem);
  box-shadow: 0 18px 34px rgba(4, 10, 20, 0.24);
  color: #ffffff;
  min-width: 7.75rem;
  opacity: 0;
  padding: 0.8rem 0.9rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(0.35rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.h4m-version-chip[open] .h4m-version-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.h4m-version-label {
  color: rgba(185, 213, 255, 0.78);
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.22rem;
  text-transform: uppercase;
}

.h4m-version-value {
  display: block;
  font-family: var(--h4-font-display);
  font-size: 0.96rem;
  font-weight: 700;
}

.h4m-footer-shell {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem);
  position: relative;
  z-index: 1;
}

.h4m-footer-columns {
  gap: 2rem;
}

.h4m-brandmark-footer a::before {
  height: 2.25rem;
  width: 2.25rem;
}

.h4m-footer-claim {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1rem 0 0;
}

.h4m-footer-note {
  color: var(--h4-ink-soft);
  margin: 0.7rem 0 0;
  max-width: 28rem;
}

.h4m-footer-heading {
  margin: 0 0 0.8rem;
}

.h4m-page-shell,
.h4m-index-shell,
.h4m-error-shell {
  padding: clamp(4rem, 7vw, 6rem) clamp(1rem, 2vw, 1.5rem);
}

.h4m-page-title {
  margin-bottom: 1.3rem;
}

.h4m-page-shell .wp-block-post-content,
.h4m-page-shell > p,
.h4m-page-shell li,
.h4m-index-copy,
.h4m-error-copy {
  color: var(--h4-ink-soft);
}

.h4m-legal-note {
  background: linear-gradient(90deg, rgba(122, 77, 255, 0.14), rgba(75, 141, 255, 0.12));
  border: 1px solid rgba(122, 77, 255, 0.16);
  border-radius: 1.2rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
}

.h4m-legal-note-title {
  color: var(--h4-ink);
  font-weight: 700;
  margin: 0;
}

.h4m-legal-note-copy {
  color: var(--h4-ink-soft);
  margin: 0.35rem 0 0;
}

.h4m-index-title,
.h4m-error-title {
  margin: 0;
  max-width: 12ch;
}

.h4m-index-entry {
  border-top: 1px solid rgba(200, 218, 245, 0.8);
  padding-top: 1rem;
}

@media (max-width: 1399px) {
  .h4m-section-services > .h4m-section-shell > .h4m-section-kicker,
  .h4m-section-services > .h4m-section-shell > .h4m-section-title,
  .h4m-section-services > .h4m-section-shell > .h4m-section-intro {
    padding-inline: clamp(1.5rem, 3vw, 2.75rem) !important;
  }

  .h4m-section-services > .h4m-section-shell > .h4m-service-grid,
  .h4m-section-about > .h4m-section-shell > .h4m-about-columns {
    box-sizing: border-box;
    /*padding-inline: clamp(1.5rem, 3vw, 2.75rem) !important;*/
  }

  .h4m-section-contact > .h4m-contact-shell {
    box-sizing: border-box;
    margin-inline: clamp(1.5rem, 3vw, 2.75rem) !important;
    width: auto !important;
  }
}

@media (max-width: 1199px) {
  .h4m-section-projects > .h4m-section-shell,
  .h4m-section-own-projects > .h4m-section-shell {
    --h4-section-edge-space: clamp(1.1rem, 2.8vw, 2rem);
  }

  .h4m-section-projects > .h4m-section-shell > .h4m-section-kicker,
  .h4m-section-projects > .h4m-section-shell > .h4m-section-title,
  .h4m-section-projects > .h4m-section-shell > .h4m-section-intro,
  .h4m-section-own-projects > .h4m-section-shell > .h4m-section-kicker,
  .h4m-section-own-projects > .h4m-section-shell > .h4m-section-title,
  .h4m-section-own-projects > .h4m-section-shell > .h4m-section-intro {
    padding-inline: var(--h4-section-edge-space);
  }
}

@media (max-width: 781px) {
  body.admin-bar .h4m-site-header {
    top: 46px;
  }

  .h4m-header-shell {
    gap: 0.7rem;
    padding-inline: 1rem;
  }

  .h4m-brandmark a,
  .h4m-primary-nav .wp-block-navigation__responsive-container-open {
    min-height: 3.5rem;
  }

  .h4m-brandmark a {
    height: 3.5rem;
    width: 3.5rem;
  }

  .h4m-primary-nav .wp-block-navigation__responsive-container-open {
    padding: 0.85rem 1rem 0.85rem 0.9rem;
  }

  .h4m-primary-nav .wp-block-navigation__responsive-container-open::after,
  .h4m-primary-nav .wp-block-navigation__responsive-container-close::after {
    font-size: 0.74rem;
  }

  .h4m-primary-nav .wp-block-navigation__responsive-dialog {
    padding-top: 5.5rem;
  }

  .h4m-about-columns,
  .h4m-service-columns {
    gap: 1.25rem;
  }

  .h4m-hero-stage {
    min-height: var(--h4-stable-viewport-height, 100svh);
    padding: clamp(6rem, 20vw, 7.2rem) 1.1rem 1.6rem;
  }

  .h4m-hero-title {
    font-size: clamp(2.8rem, 12vw, 4.6rem);
  }

  .h4m-section-services {
    margin-top: 0;
  }

  .h4m-section-projects,
  .h4m-section-own-projects,
  .h4m-section-about,
  .h4m-section-contact {
    margin-top: -1.5rem;
  }

  .h4m-section-title {
    max-width: 11ch;
  }

  .h4m-section-about > .wp-block-video.h4m-hero-video-wrap ~ .h4m-section-shell .h4m-about-columns {
    min-height: auto;
  }

  .h4m-section-about > .wp-block-video.h4m-hero-video-wrap ~ .h4m-section-shell .h4m-about-copy {
    border-radius: 1.5rem;
    flex-basis: 100% !important;
    padding: 1.2rem;
  }

  .h4m-band-detail-grid,
  .h4m-values-grid {
    grid-template-columns: 1fr;
  }

  .h4m-service-grid,
  .h4m-own-project-grid {
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
  }

  .h4m-project-card,
  .h4m-showcase-card,
  .h4m-own-project-card {
    inline-size: min(var(--h4-card-inline-size), calc(100vw - 1rem));
    max-width: min(var(--h4-card-inline-size), calc(100vw - 1rem));
    min-inline-size: min(var(--h4-card-inline-size), calc(100vw - 1rem));
    width: min(var(--h4-card-inline-size), calc(100vw - 1rem));
  }

  .h4m-project-image,
  .h4m-own-project-image {
    height: 10.75rem;
  }

  .h4m-project-carousel-controls {
    gap: 0.8rem;
    padding-inline: 0;
  }

  .h4m-project-carousel-arrow {
    height: 2.6rem;
    width: 2.6rem;
  }

  .h4m-contact-shell::after,
  .h4m-site-footer::before {
    opacity: 0.6;
  }

  .h4m-footer-columns {
    gap: 1.4rem;
  }
}

@media (min-width: 782px) and (max-width: 1199px) {
  .h4m-hero-stage {
    min-height: var(--h4-stable-viewport-height, 100svh);
  }
}

@media (min-width: 1440px) {
  .h4m-section-shell {
    padding-inline: 0;
  }

  .h4m-hero-stage {
    min-height: var(--h4-stable-viewport-height, 100svh);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .h4m-reveal {
    opacity: 1;
    transform: none;
  }

  .h4m-hero-title-text {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
