* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #020202;
  color: #f5f5f5;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

body.mobile-menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.nav-brand img,
.contact-mark,
.socials img,
.connect-icon img {
  pointer-events: none;
}

/* PAGE */

.contact-page {
  min-height: 100vh;
  background: #020202;
  overflow: hidden;
}

/* NAV */

.nav {
  position: fixed;
  top: 42px;
  left: 52px;
  right: 52px;
  z-index: 40;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 12px;
}

.nav::before {
  content: "";
  position: absolute;
  inset: -42px -52px -24px;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(2,2,2,0.88), rgba(2,2,2,0.34), transparent);
  pointer-events: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 300px;
  max-width: 300px;
  overflow: hidden;
  z-index: 41;
}

.nav-brand img {
  width: 44px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.96;
}

.brand-name {
  display: inline-block;
  min-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  font-size: 13px;
  text-transform: none;
  opacity: 0.95;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    letter-spacing 0.7s ease,
    filter 0.7s ease;
}

.brand-name.is-fading {
  opacity: 0;
  transform: translateY(-4px);
  filter: blur(4px);
}

.brand-name.is-mnvnti {
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.brand-name.is-aspire {
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(44px, 5vw, 82px);
  white-space: nowrap;
  z-index: 40;
}

.nav-links a {
  position: relative;
  opacity: 0.88;
  transition: opacity 0.25s ease;
}

.nav-links a:hover {
  opacity: 0.55;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 46px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(95,190,255,0.95), transparent);
  box-shadow: 0 0 16px rgba(95,190,255,0.85);
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 92px;
  height: 34px;
  background: transparent;
  border: 0;
  padding: 0;
  color: #fff;
  cursor: pointer;
  z-index: 41;
}

.menu-text {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(8px);
  filter: blur(4px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    filter 0.35s ease;
}

.menu-lines {
  width: 38px;
  height: 24px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  transition: transform 0.45s ease;
}

.menu-lines span {
  display: block;
  height: 1px;
  width: 38px;
  background: #fff;
  opacity: 0.85;
  transition:
    transform 0.45s ease,
    opacity 0.35s ease,
    width 0.35s ease;
}

.menu.is-open .menu-text {
  opacity: 0.82;
  transform: translateX(0);
  filter: blur(0);
}

.menu.is-open .menu-lines {
  transform: rotate(180deg);
}

.menu.is-open .menu-lines span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu.is-open .menu-lines span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu.is-open .menu-lines span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* SIDE LABELS */

.side-label {
  position: fixed;
  top: 50%;
  z-index: 20;
  writing-mode: vertical-rl;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  letter-spacing: 0.32em;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.66;
}

.side-label-left {
  left: 46px;
  transform: translateY(-50%) rotate(180deg);
}

.side-label-right {
  right: 46px;
  transform: translateY(-50%);
}

.side-line {
  width: 1px;
  height: 78px;
  background:
    linear-gradient(to bottom, transparent, rgba(255,255,255,0.52), rgba(95,190,255,0.70), transparent);
  box-shadow: 0 0 18px rgba(95,190,255,0.28);
}

/* HERO */

.contact-hero {
  position: relative;
  min-height: auto;
  isolation: isolate;
  overflow: hidden;
  background: #020202;
  padding: 104px 52px 0;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -5;
  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  opacity: 0.56;
  transform: scale(1.02);
  filter: brightness(0.82) contrast(1.10) saturate(0.84);
  animation: backgroundDrift 22s ease-in-out infinite;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 50% 22%, rgba(95,190,255,0.12), transparent 24%),
    radial-gradient(circle at 50% 44%, rgba(95,190,255,0.10), transparent 22%),
    linear-gradient(to right, rgba(2,2,2,0.96), rgba(2,2,2,0.47) 50%, rgba(2,2,2,0.96)),
    linear-gradient(to bottom, rgba(2,2,2,0.62), rgba(2,2,2,0.36) 34%, rgba(2,2,2,0.84) 74%, #020202 100%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 2;
  width: min(800px, 100%);
  margin: 0 auto;
  padding-bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-mark-wrap {
  position: relative;
  width: clamp(92px, 8vw, 132px);
  margin-top: 20px;
  margin-bottom: 18px;
}

.contact-mark {
  width: 100%;
  height: auto;
  opacity: 0.90;
  filter:
    drop-shadow(0 30px 42px rgba(0,0,0,0.96))
    drop-shadow(0 0 26px rgba(255,255,255,0.12));
  animation: markFloat 6.5s ease-in-out infinite;
}

.mark-reflection {
  position: absolute;
  left: 50%;
  top: 82%;
  width: 1px;
  height: 72px;
  transform: translateX(-50%);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.26), rgba(95,190,255,0.15), transparent);
  opacity: 0.56;
  filter: blur(0.2px);
}

.contact-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.46em;
  font-size: 12px;
  color: rgba(155,205,255,0.86);
  margin-bottom: 14px;
}

.contact-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  font-size: clamp(50px, 5.9vw, 82px);
  font-weight: 400;
  letter-spacing: 0.20em;
  margin-left: 0.20em;
  line-height: 1;
  color: rgba(255,255,255,0.92);
  text-shadow:
    0 26px 46px rgba(0,0,0,0.88),
    0 0 28px rgba(95,190,255,0.10);
}

.blue-title-line {
  position: relative;
  width: min(420px, 88vw);
  height: 1px;
  margin: 22px 0 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgba(95,190,255,0.42), rgba(255,255,255,0.16), rgba(95,190,255,0.42), transparent);
  box-shadow:
    0 0 18px rgba(95,190,255,0.10),
    0 0 42px rgba(95,190,255,0.055);
}

.blue-title-line span {
  position: absolute;
  top: -6px;
  left: -28%;
  width: 28%;
  height: 13px;
  background: radial-gradient(circle, rgba(120,210,255,0.95), rgba(95,190,255,0.22), transparent 72%);
  filter: blur(4px);
  animation: blueFlashMoveWide 6.2s ease-in-out infinite;
}

.contact-copy {
  max-width: 570px;
  text-transform: uppercase;
  letter-spacing: 0.30em;
  font-size: 11px;
  line-height: 2;
  color: rgba(255,255,255,0.68);
  margin-bottom: 24px;
}

/* WATER / BLUE FX */

.water-ripple {
  position: absolute;
  left: 50%;
  top: 28%;
  z-index: -2;
  width: 180px;
  height: 58px;
  border: 1px solid rgba(95,190,255,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  animation: waterPulse 5.6s ease-out infinite;
  pointer-events: none;
}

.ripple-two {
  animation-delay: 2.8s;
}

.blue-star {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: -1;
  width: 1px;
  height: 42px;
  background:
    linear-gradient(to bottom, transparent, rgba(95,190,255,1), transparent);
  box-shadow:
    0 0 16px rgba(95,190,255,0.85),
    0 0 40px rgba(95,190,255,0.32);
  pointer-events: none;
  animation: blueStarPulse 3.8s ease-in-out infinite;
}

/* FORM */

.contact-form {
  width: min(760px, 100%);
  border: 1px solid rgba(255,255,255,0.20);
  background:
    radial-gradient(circle at 50% 100%, rgba(95,190,255,0.11), transparent 42%),
    rgba(2,2,2,0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 28px 34px 28px;
  box-shadow:
    0 28px 70px rgba(0,0,0,0.48),
    inset 0 0 0 1px rgba(95,190,255,0.025);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.enquiry-grid {
  margin-bottom: 18px;
}

.full-field {
  grid-column: 1 / -1;
}

.project-fields {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    max-height 0.55s ease,
    opacity 0.38s ease,
    margin 0.38s ease,
    transform 0.38s ease;
}

.project-fields.is-visible {
  max-height: 180px;
  opacity: 1;
  margin-top: 18px;
  transform: translateY(0);
  pointer-events: auto;
}

label {
  display: block;
  text-align: left;
}

label span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 10px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 9px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.23);
  background: rgba(0,0,0,0.30);
  color: #f5f5f5;
  border-radius: 0;
  outline: none;
  padding: 14px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.34);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.68) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.68) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

textarea {
  resize: vertical;
  min-height: 102px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(95,190,255,0.74);
  background: rgba(4,16,24,0.42);
  box-shadow:
    0 0 0 1px rgba(95,190,255,0.20),
    0 0 22px rgba(95,190,255,0.13);
}

.message-field {
  margin-top: 18px;
}

.submit-btn {
  position: relative;
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(95,190,255,0.58);
  background:
    linear-gradient(90deg, rgba(95,190,255,0.06), rgba(95,190,255,0.14), rgba(95,190,255,0.06));
  color: #f5f5f5;
  padding: 18px 24px;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 22%;
  height: 100%;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
  transform: skewX(-18deg);
  animation: buttonSweep 4.8s ease-in-out infinite;
}

.submit-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(140,220,255,0.95);
  box-shadow:
    0 0 24px rgba(95,190,255,0.20),
    inset 0 0 18px rgba(95,190,255,0.06);
}

/* CONNECT */

.connect-section {
  width: min(800px, 100%);
  margin-top: 22px;
  padding-bottom: 18px;
}

.connect-section h2 {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.64);
  margin-bottom: 20px;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.connect-card {
  min-height: 102px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-right: 1px solid rgba(255,255,255,0.14);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.connect-card:last-child {
  border-right: 0;
}

.connect-card:hover {
  background: rgba(95,190,255,0.045);
  box-shadow: inset 0 0 20px rgba(95,190,255,0.055);
}

.connect-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.92);
  font-size: 24px;
}

.connect-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.connect-card strong {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 400;
}

.connect-card small {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 9px;
  color: rgba(255,255,255,0.58);
}

/* FOOTER */

footer {
  position: relative;
  z-index: 2;
  padding: 30px 52px 34px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.78;
  background:
    linear-gradient(to top, #020202, rgba(2,2,2,0.72));
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 52px;
  right: 52px;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(95,190,255,0.58), rgba(255,255,255,0.12), rgba(95,190,255,0.58), transparent);
  box-shadow: 0 0 20px rgba(95,190,255,0.22);
}

.socials {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 34px;
  letter-spacing: 0;
}

.socials a {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.built {
  justify-self: end;
  text-align: right;
  line-height: 2;
}

/* ANIMATIONS */

@keyframes backgroundDrift {
  0% {
    transform: scale(1.02) translateY(0);
  }

  50% {
    transform: scale(1.045) translateY(-5px);
  }

  100% {
    transform: scale(1.02) translateY(0);
  }
}

@keyframes markFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes waterPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.55);
    opacity: 0;
  }

  24% {
    opacity: 0.68;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.05);
    opacity: 0;
  }
}

@keyframes blueStarPulse {
  0%,
  100% {
    opacity: 0.36;
    transform: translateX(-50%) scaleY(0.68);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1.12);
  }
}

@keyframes blueFlashMoveWide {
  0% {
    left: -28%;
    opacity: 0;
  }

  18% {
    opacity: 0.9;
  }

  55% {
    left: 105%;
    opacity: 0;
  }

  100% {
    left: 105%;
    opacity: 0;
  }
}

@keyframes buttonSweep {
  0% {
    left: -30%;
    opacity: 0;
  }

  18% {
    opacity: 0.85;
  }

  46% {
    left: 108%;
    opacity: 0;
  }

  100% {
    left: 108%;
    opacity: 0;
  }
}

/* TABLET */

@media (max-width: 1024px) {
  .nav {
    left: 34px;
    right: 34px;
  }

  .nav-brand {
    width: 250px;
    max-width: 250px;
  }

  .nav-brand img {
    width: 38px;
  }

  .brand-name {
    min-width: 160px;
    font-size: 11px;
  }

  .nav-links {
    gap: 36px;
  }

  .side-label {
    display: none;
  }

  .contact-form {
    width: min(720px, 100%);
  }

  .connect-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .connect-card:nth-child(2) {
    border-right: 0;
  }

  .connect-card:nth-child(1),
  .connect-card:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
}

/* MOBILE */

@media (max-width: 760px) {
  .nav {
    position: fixed !important;
    top: 24px;
    left: 22px;
    right: 22px;
    height: 42px;
    z-index: 99999 !important;
  }

  .nav::before {
    content: "";
    position: absolute;
    inset: -28px -22px -20px;
    z-index: -1;
    background:
      linear-gradient(to bottom, rgba(2,2,2,0.88), rgba(2,2,2,0.34), transparent);
    pointer-events: none;
  }

  .nav-brand {
    width: auto;
    max-width: 220px;
    gap: 14px;
  }

  .nav-brand img {
    width: 34px;
  }

  .brand-name {
    min-width: 130px;
    font-size: 10px;
  }

  .menu {
    position: relative !important;
    z-index: 100002 !important;
    min-width: 42px;
  }

  .menu-text {
    display: none;
  }

  .menu-lines {
    width: 34px;
  }

  .menu-lines span {
    width: 34px;
  }

  .nav-links {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(340px, 84vw) !important;
    height: 100svh !important;
    transform: translateX(105%) !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 34px !important;
    padding: 96px 34px 44px !important;
    background:
      radial-gradient(circle at 72% 20%, rgba(95,190,255,0.12), transparent 34%),
      linear-gradient(to bottom, rgba(5,5,5,0.998), rgba(0,0,0,0.996)) !important;
    border-left: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: -34px 0 90px rgba(0,0,0,0.76) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 100001 !important;
    transition:
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.45s ease,
      visibility 0.45s ease !important;
  }

  .nav.nav-minimal .nav-links {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav-links::before {
    content: "MNVNTI" !important;
    position: absolute !important;
    top: 34px !important;
    left: 34px !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 18px !important;
    letter-spacing: 0.42em !important;
    opacity: 0.42 !important;
  }

  .nav-links a {
    opacity: 0 !important;
    transform: translateX(18px) !important;
    color: rgba(255,255,255,0.92) !important;
    font-size: 13px !important;
    letter-spacing: 0.34em !important;
    text-transform: uppercase !important;
    transition:
      opacity 0.35s ease,
      transform 0.45s ease !important;
  }

  .nav.nav-minimal .nav-links a {
    opacity: 0.92 !important;
    transform: translateX(0) !important;
  }

  body.mobile-menu-open::after {
    display: none !important;
  }

  .side-label {
    display: none;
  }

  .contact-hero {
    padding: 92px 22px 0;
  }

  .contact-bg {
    opacity: 0.48;
    background-position: center top;
  }

  .contact-inner {
    min-height: auto;
    padding-bottom: 22px;
  }

  .contact-mark-wrap {
    width: clamp(84px, 28vw, 118px);
    margin-top: 18px;
    margin-bottom: 20px;
  }

  .mark-reflection {
    height: 58px;
  }

  .contact-eyebrow {
    font-size: 10px;
    letter-spacing: 0.28em;
  }

  .contact-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
    letter-spacing: 0.14em;
    margin-left: 0.14em;
  }

  .blue-title-line {
    margin: 20px 0 18px;
  }

  .contact-copy {
    font-size: 10px;
    letter-spacing: 0.20em;
    max-width: 330px;
    margin-bottom: 22px;
  }

  .water-ripple {
    top: 25%;
    width: 140px;
    height: 44px;
  }

  .contact-form {
    padding: 24px 22px 22px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-fields.is-visible {
    max-height: 320px;
  }

  .submit-btn {
    font-size: 11px;
    letter-spacing: 0.24em;
    padding: 17px 18px;
  }

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

  .connect-card {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }

  .connect-card:last-child {
    border-bottom: 0;
  }

  footer {
    padding: 42px 22px 38px;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  footer::before {
    left: 22px;
    right: 22px;
  }

  .socials {
    justify-self: start;
  }

  .built {
    justify-self: start;
    text-align: left;
  }
}

/* SMALL PHONES */

@media (max-width: 420px) {
  .brand-name {
    display: none;
  }

  .contact-hero h1 {
    font-size: 40px;
  }

  .contact-form {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* =========================================================
   MNVNTI GLOBAL RESPONSIVE + MOBILE MENU SAFETY PATCH
========================================================= */

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 0 !important;
}

main,
section,
footer,
nav,
div {
  max-width: 100%;
}

img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

button,
input,
textarea,
select {
  max-width: 100%;
}

.nav {
  max-width: calc(100% - 104px);
}

@media (max-width: 1024px) {
  .nav {
    max-width: calc(100% - 68px);
  }

  .nav-links {
    gap: clamp(24px, 4vw, 42px) !important;
  }

  .brand-name {
    min-width: 130px !important;
  }

  h1 {
    overflow-wrap: break-word;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .nav {
    position: fixed !important;
    top: max(22px, env(safe-area-inset-top)) !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    max-width: calc(100% - 40px) !important;
    height: 42px !important;
    z-index: 200000 !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  .nav::before {
    content: "" !important;
    position: absolute !important;
    inset: -26px -20px -18px !important;
    z-index: -1 !important;
    background:
      linear-gradient(to bottom, rgba(2,2,2,0.92), rgba(2,2,2,0.34), transparent) !important;
    pointer-events: none !important;
  }

  .nav-brand {
    position: relative !important;
    z-index: 200001 !important;
    width: auto !important;
    max-width: calc(100% - 70px) !important;
    min-width: 0 !important;
    gap: 13px !important;
  }

  .nav-brand img {
    width: 34px !important;
    min-width: 34px !important;
  }

  .brand-name {
    min-width: 0 !important;
    max-width: 150px !important;
    font-size: 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .menu {
    position: fixed !important;
    top: max(26px, calc(env(safe-area-inset-top) + 4px)) !important;
    right: 20px !important;
    z-index: 200003 !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: rgba(2,2,2,0.18) !important;
    border: 0 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .menu-text {
    display: none !important;
  }

  .menu-lines {
    position: relative !important;
    z-index: 200004 !important;
    width: 34px !important;
    height: 24px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 7px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .menu-lines span {
    display: block !important;
    width: 34px !important;
    height: 1px !important;
    background: rgba(255,255,255,0.96) !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow:
      0 0 10px rgba(255,255,255,0.20),
      0 0 18px rgba(95,190,255,0.18) !important;
  }

  .menu.is-open .menu-lines span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  .menu.is-open .menu-lines span:nth-child(2) {
    opacity: 0 !important;
    width: 0 !important;
  }

  .menu.is-open .menu-lines span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  .nav-links {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(340px, 84vw) !important;
    max-width: 84vw !important;
    height: 100svh !important;
    transform: translateX(105%) !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 34px !important;
    padding: 96px 34px 44px !important;
    background:
      radial-gradient(circle at 72% 20%, rgba(95,190,255,0.12), transparent 34%),
      linear-gradient(to bottom, rgba(5,5,5,0.998), rgba(0,0,0,0.996)) !important;
    border-left: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: -34px 0 90px rgba(0,0,0,0.76) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 200002 !important;
    transition:
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.45s ease,
      visibility 0.45s ease !important;
  }

  .nav.nav-minimal .nav-links {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    filter: none !important;
  }

  .nav-links::before {
    content: "MNVNTI" !important;
    position: absolute !important;
    top: 34px !important;
    left: 34px !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 18px !important;
    letter-spacing: 0.42em !important;
    opacity: 0.42 !important;
  }

  .nav-links a {
    position: relative !important;
    opacity: 0 !important;
    transform: translateX(18px) !important;
    color: rgba(255,255,255,0.92) !important;
    font-size: 13px !important;
    letter-spacing: 0.34em !important;
    text-transform: uppercase !important;
    filter: none !important;
    transition:
      opacity 0.35s ease,
      transform 0.45s ease !important;
  }

  .nav.nav-minimal .nav-links a {
    opacity: 0.92 !important;
    transform: translateX(0) !important;
  }

  .nav-links a.active::after {
    left: 0 !important;
    bottom: -11px !important;
    width: 54px !important;
    transform: none !important;
    background: linear-gradient(90deg, rgba(95,190,255,0.95), transparent) !important;
  }

  body.mobile-menu-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .side-label,
  .side-label-left,
  .side-label-right {
    display: none !important;
  }

  h1,
  .title {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .work-grid,
  .grid,
  .support-card-grid,
  .connect-grid,
  .field-grid,
  .filter-row {
    max-width: 100% !important;
  }

  .primary-support-btn,
  .outline-btn,
  .submit-btn,
  .support-btn,
  .intro-toggle,
  .motion-toggle,
  .sound-toggle {
    max-width: calc(100vw - 44px) !important;
    min-width: 0 !important;
  }

  .contact-hero,
  .support-hero,
  .about-hero,
  .work-hero,
  .hero {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .contact-form,
  .support-panel,
  .quote-panel,
  .creator-section,
  .connect-section {
    max-width: calc(100vw - 44px) !important;
  }
}

/* Homepage intro sound prompt */
.intro-sound-prompt {
  position: fixed;
  left: 50%;
  bottom: max(54px, calc(env(safe-area-inset-bottom) + 42px));
  z-index: 40;
  transform: translateX(-50%);
  border: 1px solid rgba(95,190,255,0.45);
  background:
    radial-gradient(circle at 50% 0%, rgba(95,190,255,0.16), transparent 46%),
    rgba(0,0,0,0.48);
  color: #f5f5f5;
  padding: 18px 24px;
  min-width: 260px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 28px rgba(95,190,255,0.10),
    inset 0 0 24px rgba(95,190,255,0.04);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    filter 0.6s ease;
}

.intro-sound-prompt.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  filter: blur(6px);
}

.intro-sound-prompt .prompt-main {
  position: relative;
  z-index: 2;
  font-size: 11px;
}

.intro-sound-prompt .prompt-sub {
  position: relative;
  z-index: 2;
  font-size: 9px;
  opacity: 0.58;
}

.prompt-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88%;
  height: 54%;
  border: 1px solid rgba(95,190,255,0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.74);
  opacity: 0;
  animation: introPromptRipple 2.7s ease-out infinite;
}

@keyframes introPromptRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
  }

  28% {
    opacity: 0.7;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .intro-sound-prompt {
    bottom: max(32px, calc(env(safe-area-inset-bottom) + 28px));
    width: calc(100vw - 44px);
    min-width: 0;
    padding: 16px 18px;
  }
}


/* =========================================================
   MNVNTI STABLE RESPONSIVE PATCH
   Minimal patch: prevents mobile/tablet overflow without redesigning layout.
========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .side-label,
  .side-label-left,
  .side-label-right {
    display: none !important;
  }

  h1,
  .title {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .contact-hero,
  .support-hero,
  .about-hero,
  .work-hero,
  .hero {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .contact-form,
  .support-panel,
  .quote-panel,
  .creator-section,
  .connect-section {
    max-width: calc(100vw - 44px);
  }
}

/* =========================================================
   MNVNTI DESKTOP HAMBURGER HIDE FIX
   Contact/Support match Work/About: three lines hide centre nav.
========================================================= */

@media (min-width: 761px) {
  .nav.nav-minimal .nav-links {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(-8px) !important;
    filter: blur(6px) !important;
    pointer-events: none !important;
  }
}

/* MNVNTI minor animation restore */
#sideLabelName {
  display: inline-block;
  transition:
    opacity 0.65s ease,
    filter 0.65s ease,
    letter-spacing 0.65s ease;
}

#sideLabelName.is-fading {
  opacity: 0;
  filter: blur(4px);
}

#sideLabelName.is-aspire {
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

#sideLabelName.is-nathan {
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.side-separator {
  opacity: 0.55;
}

/* Contact side labels simplified */
.contact-page .side-label-left,
.contact-page .side-label-right {
  gap: 0;
}

.contact-page .side-label-left span,
.contact-page .side-label-right span {
  display: inline-block;
}

/* Side label MNVNTI animation state */
#sideLabelName.is-mnvnti {
  letter-spacing: 0.36em;
  text-transform: uppercase;
}
