
/* =========================================
   MAUU.DESIGN — ANIMATION SYSTEM
   CONSOLIDATED VERSION
   Brand color: #e30613
========================================= */


/* =========================================
   01. SPLIT REVEAL
========================================= */

.split-reveal .mauu-word {
  display: inline-block;
  white-space: nowrap;
}

.split-reveal .word-space {
  display: inline-block;
  width: 0.25em;
}

.split-reveal .char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split-reveal .char {
  display: inline-block;
  will-change: transform;
}


/* =========================================
   02. PAGE LOADER
========================================= */

.page-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;
}

.page-loader-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  background: #000;
  will-change: transform;
}

.page-loader-left {
  left: 0;
}

.page-loader-right {
  right: 0;
}

.page-loader-brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
}

.page-loader-logo {
  width: 260px;
  max-width: 70vw;
  height: auto;
  display: block;
}

.page-loader-subtitle {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: lowercase;
  color: #999;
}

.page-loader.is-hidden {
  visibility: hidden;
  pointer-events: none;
}


/* =========================================
   03. FOUR QUADRANT CARD HOVER
========================================= */

.work-entry .work-entry-hover {
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.work-entry .mauu-hover-quadrants {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: 50% 50%;
  pointer-events: none;
}

.work-entry .mauu-hover-quadrant {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.91);
  transform: scale(0);
  will-change: transform;
}

.work-entry .mauu-hover-quadrant:nth-child(1) {
  transform-origin: left center;
}

.work-entry .mauu-hover-quadrant:nth-child(2) {
  transform-origin: center top;
}

.work-entry .mauu-hover-quadrant:nth-child(3) {
  transform-origin: center bottom;
}

.work-entry .mauu-hover-quadrant:nth-child(4) {
  transform-origin: right center;
}

.work-entry .work-entry-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 90%;
  margin: 0 !important;
  padding: 0 12px !important;
  z-index: 2;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.work-entry:hover .work-entry-hover,
.work-entry:hover .work-entry-content {
  transition: none !important;
}


/* =========================================
   04. INDEX — STICKY HERO
========================================= */

.mauu-hero-layer {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #121212;
}

.mauu-hero-layer .nav-main {
  position: relative;
  top: auto;
  z-index: auto;
  background: transparent;
}

.mauu-sticky-hero {
  position: relative;
  top: auto;
  margin: 0;
  background: transparent;
}

.mauu-portfolio-layer {
  position: relative;
  z-index: 2;
  background: #121212;
}

.mauu-portfolio-layer #portfolio {
  background: #121212;
}


/* =========================================
   05. INDEX — HERO TYPOGRAPHY
========================================= */

.mauu-red {
  color: #e30613;
}

.mauu-hero-title {
  margin: 0;
  color: #fff !important;
  font-weight: 800;
  line-height: 1.12;
}

.mauu-hero-line {
  display: block;
  color: #fff;
}

.mauu-hero-title .mauu-red,
.mauu-hero-description .mauu-red {
  color: #e30613 !important;
}

.mauu-hero-description {
  max-width: 900px;
  margin-top: 65px;
  margin-bottom: 0;
  color: #b0b0b0;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.5;
}

.mauu-description-reveal {
  will-change: transform, opacity, filter;
}

@media (max-width: 767px) {
  .mauu-hero-title {
    font-size: clamp(32px, 7.5vw, 54px) !important;
    line-height: 1.17;
    letter-spacing: -0.035em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .mauu-hero-line {
    display: block;
  }

  .mauu-hero-description {
    margin-top: 35px;
    font-size: 16px;
  }
}


/* =========================================
   06. ABOUT PHANTOM CHIP
========================================= */

.mauu-nav-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.mauu-about-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid #484848;
  border-radius: 999px;
  background: transparent;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.mauu-about-chip:hover {
  border-color: #777;
  background: #242424;
  color: #fff !important;
}

.mauu-about-chip:focus-visible {
  outline: 2px solid #e30613;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .mauu-about-chip {
    padding: 9px 14px;
    font-size: 13px;
    gap: 7px;
  }

  .mauu-nav-actions {
    margin-left: auto !important;
  }

  .mauu-nav-logo {
    width: 135px;
    height: auto;
  }
}


/* =========================================
   07. PORTFOLIO FILTER CHIPS
========================================= */

#portfolio-filters.mauu-filter-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  background: #121212;
}

#filters.mauu-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  margin: 0 !important;
  padding: 14px 0 !important;
  list-style: none;
  background: transparent;
  border-radius: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#filters.mauu-filter-chips::-webkit-scrollbar {
  display: none;
}

#filters.mauu-filter-chips li {
  display: block !important;
  flex: 0 0 auto;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

#filters.mauu-filter-chips li a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #383838 !important;
  color: #f5f5f0 !important;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

#filters.mauu-filter-chips li a:hover {
  background: #505050 !important;
  color: #fff !important;
}

#filters.mauu-filter-chips li a.active,
#filters.mauu-filter-chips li a.active:hover {
  background: #e30613 !important;
  color: #fff !important;
}

#filters.mauu-filter-chips li a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  #portfolio-filters.mauu-filter-bar {
    padding: 10px 0;
  }

  #filters.mauu-filter-chips {
    gap: 8px;
    padding: 10px !important;
    border-radius: 18px;
  }

  #filters.mauu-filter-chips li a {
    min-height: 38px;
    padding: 9px 16px !important;
    font-size: 13px;
  }
}


/* =========================================
   08. EDITORIAL FOOTER
   SHARED BY INDEX AND PROJECTS
========================================= */

.mauu-footer {
  position: relative;
  z-index: 3;
  background: #121212;
  color: #f5f5f0;
  padding: 130px 0 35px;
}

.mauu-footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: 120px;
}

.mauu-footer-heading h2 {
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  font-size: clamp(38px, 4.6vw, 76px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.045em;
  color: #f5f5f0;
}

.mauu-footer-word-wrap {
  display: inline-block;
  vertical-align: -.36em;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.15;
  padding-bottom: 0.08em;
}

.mauu-footer-word {
  display: inline-block;
  color: #e30613;
  line-height: inherit;
  will-change: transform, opacity;
}

.mauu-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 45px;
  padding-top: 14px;
}

.mauu-footer-email {
  color: #f5f5f0;
  font-size: 18px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mauu-footer-email:hover {
  color: #f04747;
}

.mauu-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.mauu-footer-links a {
  color: #f5f5f0;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.mauu-footer-links a:hover {
  color: #f04747;
}

.mauu-footer-links .mauu-linkedin-pending {
  opacity: 0.45;
  pointer-events: none;
}

.mauu-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #292929;
  padding-top: 25px;
  color: #888;
  font-size: 13px;
}

@media (max-width: 767px) {
  .mauu-footer {
    padding: 85px 0 30px;
  }

  .mauu-footer-main {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-bottom: 75px;
  }

  .mauu-footer-heading h2 {
    font-size: clamp(36px, 8vw, 56px);
  }

  .mauu-footer-contact {
    gap: 30px;
    padding-top: 0;
  }

  .mauu-footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}


/* =========================================
   09. CASE STUDY — GLOBAL LAYOUT
========================================= */

body.mauu-project-page {
  background: #fff;
  color: #222;
}

.mauu-project-page .mauu-project-container {
  width: calc(100% - 48px);
  max-width: 1280px;
  margin-inline: auto;
}



/* =========================================
   10. CASE STUDY — FIXED NAVIGATION
========================================= */

.mauu-project-page .mauu-project-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 5%;

  background: #121212;
}

.mauu-project-page .mauu-project-nav a {
  pointer-events: auto;
}

/* Back — text link */

.mauu-project-page .mauu-project-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 0;
  border: 0;
  border-radius: 0;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;

  transition: opacity 0.25s ease;
}

.mauu-project-page .mauu-project-back:hover {
  background: transparent;
  transform: none;
  opacity: 0.65;
}

/* About uses the global .mauu-about-chip styles */

/* =========================================
   11. CASE STUDY — HERO PARALLAX
========================================= */

.mauu-project-page .mauu-project-hero {
  position: relative;
  height: 70vh;
  height: 70svh;
  min-height: 420px;
  overflow: hidden;
  background: #ddd;
}

.mauu-project-page .mauu-project-hero-image {
  position: absolute;
  inset: -20% 0;
  background-image: var(--project-hero);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
}

/* =========================================
   12. CASE STUDY — INTRODUCTION
========================================= */

.mauu-project-intro {
  background: #111;
  color: #fff;
  padding: 70px 0;
}

.mauu-project-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
}

.mauu-project-eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  color: #aaa;
}

.mauu-project-title {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 6vw, 100px);
  font-weight: 800;
  line-height: 1.05;
}

.mauu-project-summary {
  margin: 0;
  max-width: 560px;
  color: #ddd;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.5;
}


/* =========================================
   13. CASE STUDY — METADATA
========================================= */

.mauu-project-meta {
  padding: 40px 0;
  background: #fff;
}

.mauu-project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.mauu-meta-label {
  display: block;
  margin-bottom: 10px;
  color: #777;
  font-size: 12px;
}

.mauu-project-meta p {
  margin: 0;
  color: #222;
  font-size: 14px;
}


/* =========================================
   14. CASE STUDY — CONTENT SECTIONS
========================================= */

.mauu-project-content {
  background: #fff;
  padding-bottom: 100px;
}

.mauu-case-section {
  padding: 75px 0;
  border-top: 1px solid #dedede;
}

.mauu-case-text-grid {
  display: grid;
  grid-template-columns: 28% minmax(0, 1fr);
  gap: 60px;
}

.mauu-case-text-grid h2,
.mauu-case-section-heading {
  margin: 0;
  color: #222;
  font-size: 22px;
  font-weight: 800;
}

.mauu-case-copy {
  max-width: 780px;
}

.mauu-case-copy h3 {
  margin: 0 0 15px;
  color: #222;
  font-size: 18px;
  font-weight: 800;
}

.mauu-case-copy p {
  margin: 0 0 32px;
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}


/* =========================================
   15. CASE STUDY — IMAGE SYSTEM
========================================= */

.mauu-project-page .mauu-case-gallery {
  display: grid;
  gap: 3px;
}

.mauu-project-page .mauu-case-gallery.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mauu-project-page .mauu-case-gallery.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Gallery images: square 1:1 */

.mauu-project-page .mauu-case-gallery figure {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: #eee;
}

.mauu-project-page .mauu-case-gallery figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Optional gallery preserving image proportions */

.mauu-project-page .mauu-case-gallery.keep-ratio figure {
  aspect-ratio: auto;
}

.mauu-project-page .mauu-case-gallery.keep-ratio figure img {
  height: auto;
  object-fit: contain;
}

/* Independent images: 16:9 */

.mauu-project-page .mauu-case-full-image,
.mauu-project-page .mauu-comparison {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #eee;
}

.mauu-project-page .mauu-case-full-image img,
.mauu-project-page .mauu-comparison img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mauu-project-page .mauu-comparison {
  margin-top: 35px;
}


/* =========================================
   SINGLE IMAGE — SQUARE 1:1
========================================= */

.mauu-project-page .mauu-case-square-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: #eee;
}

.mauu-project-page .mauu-case-square-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}



/* =========================================
   16. CASE STUDY — FEATURE CARDS
========================================= */

.mauu-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.mauu-feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px;
  border-radius: 20px;
  background: #f3f3f3;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.mauu-feature-card:hover {
  transform: translateY(-5px);
  background: #eaeaea;
}

.mauu-feature-card > span {
  color: #e30613;
  font-size: 22px;
}

.mauu-feature-card p {
  margin: 0;
  color: #222;
  font-size: 15px;
  font-weight: 700;
}


/* =========================================
   17. CASE STUDY — METRICS
========================================= */

.mauu-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
}

.mauu-metric strong {
  display: block;
  color: #222;
  font-size: clamp(48px, 6vw, 90px);
  font-weight: 400;
  line-height: 1.1;
}

.mauu-metric span {
  display: block;
  margin-top: 8px;
  color: #777;
  font-size: 15px;
}



/* =========================================
   18. CASE STUDY — NEXT PROJECT
   EDITORIAL LIGHT VERSION
========================================= */

body.mauu-project-page section#next-project.mauu-next-project {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: #fff;
}

body.mauu-project-page
section#next-project.mauu-next-project
a.mauu-next-project-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: calc(100% - 48px);
  max-width: 1280px;
  min-height: 0;
  height: auto;

  padding: 55px 20px;
  margin: 0 auto;

  border-top: 1px solid #dedede;

  overflow: hidden;
  text-align: center;
  background: transparent;
  color: #222;
  text-decoration: none !important;
}

body.mauu-project-page
section#next-project.mauu-next-project
a.mauu-next-project-link::before,
body.mauu-project-page
section#next-project.mauu-next-project
a.mauu-next-project-link::after {
  display: none;
  content: none;
}

body.mauu-project-page
section#next-project.mauu-next-project
.mauu-next-project-label {
  display: block;
  margin: 0;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

body.mauu-project-page
section#next-project.mauu-next-project
.mauu-next-project-link h2 {
  margin: 12px 0 7px;
  padding: 0;
  color: #222;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  transition: color 0.25s ease;
}

body.mauu-project-page
section#next-project.mauu-next-project
.mauu-next-project-category {
  display: block;
  margin: 0;
  color: #777;
  font-size: 13px;
}

body.mauu-project-page
section#next-project.mauu-next-project
.mauu-next-project-link:hover h2 {
  color: #e30613;
}



/* =========================================
   19. CASE STUDY — RESPONSIVE
========================================= */

@media (max-width: 767px) {

  .mauu-project-page .mauu-project-container {
    width: calc(100% - 36px);
  }

  .mauu-project-page .mauu-project-nav {
    padding: 16px 18px;
  }

  .mauu-project-page .mauu-project-back {
    padding: 9px 13px;
    font-size: 13px;
  }

  .mauu-project-page .mauu-about-chip {
    padding: 9px 14px;
    font-size: 13px;
  }

  .mauu-project-page .mauu-project-hero {
    min-height: 360px;
  }

  .mauu-project-intro {
    padding: 55px 0;
  }

  .mauu-project-intro-grid,
  .mauu-case-text-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mauu-project-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mauu-case-section {
    padding: 48px 0;
  }

  .mauu-project-page .mauu-case-gallery.columns-2,
  .mauu-project-page .mauu-case-gallery.columns-3 {
    grid-template-columns: 1fr;
  }

  .mauu-feature-grid,
  .mauu-metrics-grid {
    grid-template-columns: 1fr;
  }

  body.mauu-project-page
  section#next-project.mauu-next-project
  a.mauu-next-project-link {
    padding: 28px 16px;
  }

  body.mauu-project-page
  section#next-project.mauu-next-project
  .mauu-next-project-link h2 {
    font-size: 24px;
  }

}


/* =========================================
   20. ACCESSIBILITY
========================================= */

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

  .split-reveal .char {
    transform: none !important;
    opacity: 1 !important;
  }

  .mauu-description-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .mauu-hero-layer {
    position: relative;
  }

  .page-loader-panel,
  .work-entry .mauu-hover-quadrant,
  .work-entry .work-entry-content {
    will-change: auto;
  }

  #filters.mauu-filter-chips li a,
  .mauu-feature-card {
    transition: none;
  }

}


